rust_mst: Compute minimum spanning tree from adjacency matrix

View source: R/extendr-wrappers.R

rust_mstR Documentation

Compute minimum spanning tree from adjacency matrix

Description

Compute minimum spanning tree from adjacency matrix

Usage

rust_mst(i, j, weights, n)

Arguments

i

Row indices (0-based) of adjacency matrix non-zero entries

j

Column indices (0-based) of adjacency matrix non-zero entries

weights

Edge weights (distances/dissimilarities)

n

Number of nodes

Value

List with MST edges (from, to, weight)


spopt documentation built on April 22, 2026, 9:07 a.m.