graphclust.graphs.connect_components#
- graphclust.graphs.connect_components(points, adjacency)[source]#
Join the connected components of a graph by its shortest inter-component edges.
Repeatedly takes the component of node 0 and links it to the closest node outside it, until the graph is connected (step 2 of TRNMap). The added edges are weighted by their Euclidean length.