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).