Skip to content

@graphty/algorithms / index / HitsOptions

Interface: HitsOptions ​

Defined in: indexed/hits.ts:4

Options of the index-based HITS, matching the legacy hits.

Properties ​

maxIterations? ​

readonly optional maxIterations?: number

Defined in: indexed/hits.ts:6

Iteration cap; default 100.


normalized? ​

readonly optional normalized?: boolean

Defined in: indexed/hits.ts:14

false rescales both vectors so their largest entry is 1, which is what the legacy function does when normalization is switched OFF -- the iteration itself always divides by the L2 norm. Default true, i.e. the L2-normalized vectors are returned unchanged.


tolerance? ​

readonly optional tolerance?: number

Defined in: indexed/hits.ts:8

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


weighted? ​

readonly optional weighted?: boolean

Defined in: indexed/hits.ts:16

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