@graphty/algorithms / index / PageRankOptions
Interface: PageRankOptions ​
Defined in: indexed/pagerank.ts:6
Options of the index-based PageRank (graph-format design 14.2 Port 3).
Properties ​
convergenceNorm? ​
readonlyoptionalconvergenceNorm?:"max"|"l1"
Defined in: indexed/pagerank.ts:21
How the per-iteration change is measured against tolerance: "l1" (default) sums it over all nodes, "max" takes the largest single-node change, the legacy pageRank rule.
dampingFactor? ​
readonlyoptionaldampingFactor?:number
Defined in: indexed/pagerank.ts:8
Probability of following a link; default 0.85.
initialRanks? ​
readonlyoptionalinitialRanks?:F64|F32
Defined in: indexed/pagerank.ts:16
Starting rank per node index, normalised to sum 1 (when the sum is positive); default uniform.
maxIterations? ​
readonlyoptionalmaxIterations?:number
Defined in: indexed/pagerank.ts:10
Iteration cap; default 100.
tolerance? ​
readonlyoptionaltolerance?:number
Defined in: indexed/pagerank.ts:12
Convergence tolerance on the per-iteration change; default 1e-6.
weighted? ​
readonlyoptionalweighted?:boolean
Defined in: indexed/pagerank.ts:14
Use the snapshot's arc weights; default false.