graphclust.graphs.minimum_spanning_tree#
- graphclust.graphs.minimum_spanning_tree(X=None, *, graph=None)[source]#
Euclidean minimal spanning tree (symmetric) of the samples or of a given weighted graph.
The tree has \(N-1\) edges and minimal total length; SciPy computes it with Kruskal’s algorithm. Pass
graphto obtain the minimal spanning forest of an arbitrary weighted graph (e.g. a mutual reachability graph).