Skip to main content

eigenvector_centrality

Function eigenvector_centrality 

Source
pub fn eigenvector_centrality<G>(
    graph: &G,
    max_iterations: usize,
    tolerance: f64,
) -> Result<IterativeCentrality<G::Node>>
where G: IndexGraphView,
Expand description

Computes eigenvector centrality by shifted power iteration.

ยงErrors

Returns an error for zero iterations or an invalid tolerance.