Skip to content

@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 ​

readonly count: number

Defined in: indexed/components.ts:11

Number of distinct labels.

Inherited from ​

LabelResult.count


iterations ​

readonly iterations: number

Defined in: indexed/louvain.ts:21

Aggregation levels that improved the partition.


labels ​

readonly labels: U32

Defined in: indexed/components.ts:9

Dense label per node index, in first-seen order.

Inherited from ​

LabelResult.labels


modularity ​

readonly modularity: 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

Inherited from ​

LabelResult.groups