Skip to main content

pagerank_bounded

Function pagerank_bounded 

Source
pub fn pagerank_bounded(
    quins: &[NQuin],
    damping: f32,
    max_iters: u32,
    tolerance: f32,
    node_ids_out: &mut [u64],
    scores_out: &mut [f32],
) -> Result<usize, GraphAnalysisError>
Expand description

Zero-heap PageRank over an NQuin relation set (bounded path).

Builds the bounded adjacency from quins, runs power iteration with the given damping (typically 0.85), and writes node scores into scores_out aligned with first-seen subject/object order. Returns the number of scores written. max_iters/tolerance bound the iteration (e.g. 100 / 1e-6).