tumourkit.postprocessing.draw_rips.compute_graph_distance_matrix

tumourkit.postprocessing.draw_rips.compute_graph_distance_matrix(graph: DGLGraph) ndarray

Compute the unweighted graph shortest-path distance matrix.

Parameters:

graph (DGLHeteroGraph) – Graph of the cells.

Returns:

A 2D numpy matrix with shortest path distances.

Return type:

np.ndarray