clustering_coefficient_unweighted

bandicoot.network.clustering_coefficient_unweighted(user)

The clustering coefficient of the user in the unweighted, undirected ego network.

It is defined by counting the number of closed triplets including the current user:

\[C = \frac{2 * \text{closed triplets}}{ \text{degree} \, (\text{degree - 1})}\]

where degree is the degree of the current user in the network.