Skip to content

@graphty/algorithms / index / KatzOptions

Interface: KatzOptions ​

Defined in: indexed/katz.ts:4

Options of the index-based Katz centrality, matching the legacy katzCentrality.

Properties ​

alpha? ​

readonly optional alpha?: number

Defined in: indexed/katz.ts:6

Attenuation factor applied to a neighbour's score; default 0.1.


beta? ​

readonly optional beta?: number

Defined in: indexed/katz.ts:8

Base score every node starts with and keeps; default 1.


maxIterations? ​

readonly optional maxIterations?: number

Defined in: indexed/katz.ts:10

Iteration cap; default 100.


normalized? ​

readonly optional normalized?: boolean

Defined in: indexed/katz.ts:14

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


tolerance? ​

readonly optional tolerance?: number

Defined in: indexed/katz.ts:12

Convergence tolerance on the largest single-node change; default 1e-6.


weighted? ​

readonly optional weighted?: boolean

Defined in: indexed/katz.ts:16

Weight a neighbour's contribution by the arc weight; default false.