pub fn compute_centrality(
graph: &ArborGraph,
iterations: usize,
damping: f64,
) -> CentralityScoresExpand description
Computes centrality scores for all nodes in the graph.
This is a simplified PageRank that:
- Initializes all nodes with equal score
- Iteratively distributes scores along edges
- Applies damping to prevent score concentration
ยงArguments
graph- The graph to analyzeiterations- Number of iterations (10-20 is usually enough)damping- Damping factor (0.85 is standard)