gen.edge.listR Documentation

gen.edge.list

Description

Generate edge list from a distance matrix Duplicates are not deleted, because they will not be counted by Kruskal's algorithm If a check is O(1), this only adds an O(E) overhead, which is negligible

Usage

gen.edge.list(mat)

Arguments

mat

The distance matrix.

Value

A data frame with three columns: 'from', 'to', 'dist'.