@graphty/algorithms / index / GrsbmResult
Interface: GrsbmResult ​
Defined in: indexed/grsbm.ts:69
Result of the index-based GRSBM: the leaves as a partition, plus the hierarchy. clusters[0] is the root; the others follow in the order they were made, children in pairs.
Extends ​
Properties ​
clusters ​
readonlyclusters: readonlyGrsbmCluster[]
Defined in: indexed/grsbm.ts:71
Every cluster of the hierarchy.
count ​
readonlycount:number
Defined in: indexed/components.ts:11
Number of distinct labels.
Inherited from ​
labels ​
readonlylabels:U32
Defined in: indexed/components.ts:9
Dense label per node index, in first-seen order.
Inherited from ​
modularityScores ​
readonlymodularityScores:F64
Defined in: indexed/grsbm.ts:76
The root's modularity, then the whole partition's after each accepted split, in split order; the last is the modularity of the leaf partition.
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