@graphty/algorithms / index / LabelResult
Interface: LabelResult ​
Defined in: indexed/components.ts:7
A partition of the node set (graph-format design 14.2's result table, line 3738).
Extended by ​
MaxFlowResultMinCutResultGirvanNewmanResultGrsbmResultLabelPropagationResultLeidenResultLouvainResultMarkovResultSpectralResultTeraHacResult
Properties ​
count ​
readonlycount:number
Defined in: indexed/components.ts:11
Number of distinct labels.
labels ​
readonlylabels:U32
Defined in: indexed/components.ts:9
Dense label per node index, in first-seen order.
Methods ​
groups() ​
groups():
U32[]
Defined in: indexed/components.ts:16
Node indices grouped by label, computed once and cached.
Returns ​
U32[]
One array per label