graphclust.graphs.geodesic_distances#
- graphclust.graphs.geodesic_distances(graph, *, points=None, connect=False)[source]#
All-pairs shortest-path (graph, geodesic) distances with Dijkstra’s algorithm.
- Parameters:
- graph
sparsematrixofshape(n,n) Weighted symmetric graph, e.g. from
knn_graph()or theadjacency_of a topology learner.- points
arrayofshape(n,n_features),optional Coordinates of the nodes; needed when
connect=True.- connectbool, default=False
Join the components first with
connect_components()so that all distances are finite.
- graph
Examples using graphclust.graphs.geodesic_distances#
Mapping real data: Wine and Wisconsin breast cancer
Mapping real data: Wine and Wisconsin breast cancer