@graphty/algorithms / index / LouvainResult
Interface: LouvainResult ​
Defined in: indexed/louvain.ts:17
Result of the index-based Louvain: 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/louvain.ts:21
Aggregation levels that improved the partition.
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/louvain.ts:19
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