getMST: Obtains minimum spanning tree.

Description Usage Arguments Examples

View source: R/library.R

Description

Returns a graph object containing the minimum spanning tree between the points in dist_mat.

Usage

1
getMST(dist_mat)

Arguments

dist_mat

A matrix of distances between points.

Examples

1
2
3
latlon <- getLatLon(c('New York, New York', 'Boston, MA'))
dist_mat <- getDistMat(latlon)
getMST(dist_mat)

lboxell/geomst documentation built on June 25, 2017, 7:43 p.m.