Skip to content

@graphty/algorithms / index / pageRank

Function: pageRank() ​

pageRank(s, o?): PageRankResult

Defined in: indexed/pagerank.ts:43

PageRank by pull over reverse(), with the dangling mass redistributed uniformly. On an undirected snapshot every edge carries rank both ways (a self-loop once), which is PageRank on the directed graph holding both arcs of every edge.

Parameters ​

s ​

GraphSnapshot

The snapshot

o? ​

PageRankOptions = {}

Algorithm options

Returns ​

PageRankResult

The scores, the iteration count and the convergence flag