kruskal {mstclustering} | R Documentation |
Kruskal's algorithm for MST computation.
kruskal(edge.list, m)
edge.list |
A data frame with columnns 'from', 'to', 'dist'. |
m |
Number of nodes. |
A list of edges in the MST, in the same format as the input argument edge.list.