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 graph to obtain the minimal spanning forest of an arbitrary weighted graph (e.g. a mutual reachability graph).

Examples using graphclust.graphs.minimum_spanning_tree#

Proximity graphs and their nesting

Proximity graphs and their nesting