@graphty/algorithms / index / HitsOptions
Interface: HitsOptions ​
Defined in: indexed/hits.ts:4
Options of the index-based HITS, matching the legacy hits.
Properties ​
maxIterations? ​
readonlyoptionalmaxIterations?:number
Defined in: indexed/hits.ts:6
Iteration cap; default 100.
normalized? ​
readonlyoptionalnormalized?: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? ​
readonlyoptionaltolerance?:number
Defined in: indexed/hits.ts:8
Convergence tolerance on the largest single-node change; default 1e-6.
weighted? ​
readonlyoptionalweighted?:boolean
Defined in: indexed/hits.ts:16
Weight a neighbour's contribution by the arc weight; default false.