Skip to main content

hypergraph_clustering_coefficient

Function hypergraph_clustering_coefficient 

Source
pub fn hypergraph_clustering_coefficient(
    node: usize,
    hg: &IndexedHypergraph,
) -> f64
Expand description

Compute the local clustering coefficient of a node in an IndexedHypergraph.

Defined as the fraction of neighbour pairs (in the 2-section) that are also connected. Returns 0.0 for isolated nodes or nodes with fewer than 2 neighbours.