pub fn hits_algorithm<N, E, Ix>(
graph: &DiGraph<N, E, Ix>,
max_iter: usize,
tolerance: f64,
) -> Result<HitsScores<N>>
Expand description
Compute HITS algorithm for a directed graph
The HITS algorithm computes two scores for each node:
- Authority score: nodes that are pointed to by many hubs
- Hub score: nodes that point to many authorities
§Arguments
graph
- The directed graphmax_iter
- Maximum number of iterationstolerance
- Convergence tolerance
§Returns
- HitsScores containing authority and hub scores for each node