minimum.spanning.tree: Minimum spanning tree

View source: R/minimum.spanning.tree.R

minimum.spanning.treeR Documentation

Minimum spanning tree

Description

[Deprecated]

minimum.spanning.tree() was renamed to mst() to create a more consistent API.

Usage

minimum.spanning.tree(graph, weights = NULL, algorithm = NULL, ...)

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 unweighted algorithm is chosen. Edge weights are interpreted as distances.

algorithm

The algorithm to use for calculation. unweighted can be used for unweighted graphs, and prim runs Prim's algorithm for weighted graphs. If this is NULL then igraph will select the algorithm automatically: if the graph has an edge attribute called weight or the weights argument is not NULL then Prim's algorithm is chosen, otherwise the unweighted algorithm is used.

...

Additional arguments, unused.


igraph documentation built on Oct. 20, 2024, 1:06 a.m.