kruskal: kruskal

Description Usage Arguments Value

View source: R/mstclustering.R

Description

Kruskal's algorithm for MST computation.

Usage

1
kruskal(edge.list, m)

Arguments

edge.list

A data frame with columnns 'from', 'to', 'dist'.

m

Number of nodes.

Value

A list of edges in the MST, in the same format as the input argument edge.list.


mstclustering documentation built on Feb. 8, 2022, 9:06 a.m.