Skip to main content

Module clustering

Module clustering 

Source
Available on crate feature algorithms only.
Expand description

Nodal clustering coefficients (xgi/algorithms/clustering.py).

Functions§

clustering_coefficient
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).
local_clustering_coefficient
Local clustering coefficient based on edge overlap. XGI parity: local_clustering_coefficient (clustering.py:77-164).
two_node_clustering_coefficient
Two-node clustering coefficient averaged over a node’s neighbours. kind ∈ {“union”, “min”, “max”}. XGI parity: two_node_clustering_coefficient (clustering.py:167-278).