@graphty/algorithms / index / PrimResult
Interface: PrimResult ​
Defined in: indexed/mst.ts:85
Result of the index-based Prim: the MST result plus each node's discovery arc.
Extends ​
Properties ​
edges ​
readonlyedges:U32
Defined in: indexed/mst.ts:23
Logical edge indices of the spanning forest, in the order they were accepted.
Inherited from ​
predArc ​
readonlypredArc:U32
Defined in: indexed/mst.ts:87
The tree arc that reached each node, pointing at it; INVALID_INDEX for every root.
totalWeight ​
readonlytotalWeight:number
Defined in: indexed/mst.ts:25
Sum of the accepted edges' weights.