minimum.spanning.tree() was renamed to mst() to create a more
consistent API.
Arguments
- graph
The graph object to analyze.
- weights
Numeric vector giving the weights of the edges in the graph. The order is determined by the edge ids. This is ignored if the
unweightedalgorithm is chosen. Edge weights are interpreted as distances.- algorithm
The algorithm to use for calculation.
unweightedcan be used for unweighted graphs, andprimruns Prim's algorithm for weighted graphs. If this isNULLthen igraph will select the algorithm automatically: if the graph has an edge attribute calledweightor theweightsargument is notNULLthen Prim's algorithm is chosen, otherwise the unweighted algorithm is used.- ...
Additional arguments, unused.
Related documentation in the C library
minimum_spanning_tree_unweighted(), minimum_spanning_tree_prim(), edges(), get_eids(), vcount(), ecount()
