Skip to content

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

readonly clusters: readonly GrsbmCluster[]

Defined in: indexed/grsbm.ts:71

Every cluster of the hierarchy.


count ​

readonly count: number

Defined in: indexed/components.ts:11

Number of distinct labels.

Inherited from ​

LabelResult.count


labels ​

readonly labels: U32

Defined in: indexed/components.ts:9

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

Inherited from ​

LabelResult.labels


modularityScores ​

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

Inherited from ​

LabelResult.groups