Skip to content

@graphty/algorithms / index / GrsbmOptions

Interface: GrsbmOptions ​

Defined in: indexed/grsbm.ts:8

Options of the index-based GRSBM, matching the legacy grsbm.

Properties ​

maxDepth? ​

readonly optional maxDepth?: number

Defined in: indexed/grsbm.ts:10

Clusters at this depth are not split; default 10.


maxIterations? ​

readonly optional maxIterations?: number

Defined in: indexed/grsbm.ts:16

Iteration cap of the Fiedler-vector iteration; default 100.


minClusterSize? ​

readonly optional minClusterSize?: number

Defined in: indexed/grsbm.ts:12

A cluster is split only when it has at least twice this many members; default 2.


seed? ​

readonly optional seed?: number

Defined in: indexed/grsbm.ts:18

Seed of the iteration's start vectors; default 42.


tolerance? ​

readonly optional tolerance?: number

Defined in: indexed/grsbm.ts:14

Convergence tolerance of the Fiedler-vector iteration; default 1e-6.


weighted? ​

readonly optional weighted?: boolean

Defined in: indexed/grsbm.ts:23

Use arc weights in the Laplacian and the modularity (true, the default), or count arcs (false, which is what the legacy grsbm does). A parallel arc counts once per arc.