fuzzyclust.graph.minimum_spanning_tree#
- fuzzyclust.graph.minimum_spanning_tree(X, backend='scipy')[source]#
Euclidean minimal spanning tree of the samples.
- Parameters:
- Xarray_like
ofshape(n_samples,n_features) - backend{“scipy”, “networkx”}, default=”scipy”
"scipy"usesscipy.sparse.csgraph.minimum_spanning_tree()(Kruskal) on the dense distance matrix;"networkx"usesnetworkx.minimum_spanning_tree()and requires the optional dependencyfuzzyclust[graph]. Both return the same tree up to ties.
- Xarray_like
- Returns: