@graphty/algorithms / index / LeidenResult
Interface: LeidenResult ​
Defined in: indexed/leiden.ts:30
Result of the index-based Leiden: a partition plus the modularity it reaches.
Extends ​
Properties ​
count ​
readonlycount:number
Defined in: indexed/components.ts:11
Number of distinct labels.
Inherited from ​
iterations ​
readonlyiterations:number
Defined in: indexed/leiden.ts:34
Levels processed, summed over every pass.
labels ​
readonlylabels:U32
Defined in: indexed/components.ts:9
Dense label per node index, in first-seen order.
Inherited from ​
modularity ​
readonlymodularity:number
Defined in: indexed/leiden.ts:32
Modularity of the returned partition, at the requested resolution.
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