| get_mst_edges | R Documentation |
Implements Prim's algorithm exactly as in the reference Python code
(dctree.py, lines 401–438), operating on a precomputed distance
matrix.
get_mst_edges(dist_matrix)
dist_matrix |
A symmetric |
A data.frame with n-1 rows and three columns:
Integer index of the first endpoint (1-based).
Integer index of the second endpoint (1-based).
Edge weight.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.