Skip to main content

hits

Function hits 

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

Computes HITS hub and authority scores on topological relationships.

Parallel edges with equal endpoints are treated as one relationship, so duplicate provenance does not bias repository rankings.

ยงErrors

Returns an error for zero iterations or a non-positive, non-finite tolerance.