Skip to main content

clustering_coefficient

Function clustering_coefficient 

Source
pub fn clustering_coefficient<N, E, M>(
    h: &Hypergraph<N, E, M>,
) -> IndexMap<String, f64>
Available on crate feature algorithms only.
Expand description

Clustering coefficient via the unweighted pairwise projection: c_i = 0.5 · (A³)_ii / [k_i (k_i − 1) / 2], 0 when undefined. XGI parity: clustering_coefficient (clustering.py:17-74).