Skip to content

@graphty/algorithms / index / EigenvectorOptions

Interface: EigenvectorOptions ​

Defined in: indexed/eigenvector.ts:6

Options of the index-based eigenvector centrality, matching the legacy eigenvectorCentrality.

Properties ​

maxIterations? ​

readonly optional maxIterations?: number

Defined in: indexed/eigenvector.ts:8

Iteration cap; default 100.


mode? ​

readonly optional mode?: "in" | "out" | "total"

Defined in: indexed/eigenvector.ts:17

On a directed snapshot, which arcs feed a node: "in" (default, as networkx) the nodes pointing at it, "out" the nodes it points at, "total" both. Ignored on an undirected snapshot.


normalized? ​

readonly optional normalized?: boolean

Defined in: indexed/eigenvector.ts:12

Rescale the unit-length vector to [0, 1] by min-max, as the legacy function does; default true.


startVector? ​

readonly optional startVector?: F64 | F32

Defined in: indexed/eigenvector.ts:19

Starting value per node index; default 1 for every node.


tolerance? ​

readonly optional tolerance?: number

Defined in: indexed/eigenvector.ts:10

Per-node tolerance: the run stops when the L1 change is below n * tolerance; default 1e-6.