Skip to main content

Module ppr

Module ppr 

Source
Expand description

Personalized PageRank.

Functions§

personalized_pagerank
Compute Personalized PageRank with a teleport bias.
personalized_pagerank_checked
Validated personalized PageRank. Checks config and the personalization vector (length equals node_count, all entries finite and non-negative, sum is positive). Returns only the scores; use personalized_pagerank_checked_run for convergence diagnostics.
personalized_pagerank_checked_run
Validated personalized PageRank with full diagnostics. Errors on invalid config or personalization vector; returns a PageRankRun including iteration count and final L1 delta on success.
personalized_pagerank_run
Personalized PageRank with full diagnostics. No input validation — assumes personalization.len() == graph.node_count(). Use personalized_pagerank_checked_run for validated entrypoint.