hatvis.metrics.two_node_clustering#

hatvis.metrics.two_node_clustering(H)[source]#

Two-node clustering coefficient (Gallagher and Goldberg 2013).

For a vertex \(u\) with neighbors \(N(u)\): \(c(u)=\frac{1}{|N(u)|}\sum_{v\in N(u)}\frac{|M(u)\cap M(v)|}{|M(u)\cup M(v)|}\), where \(M(u)\) is the set of hyperedges containing \(u\). High values mean that the neighbors of a vertex appear together with it in many of the same hyperedges.

Examples using hatvis.metrics.two_node_clustering#

Null models: what is structure and what is chance?

Null models: what is structure and what is chance?