bandicoot.network.
clustering_coefficient_weighted
(user, interaction=None)¶The clustering coefficient of the user’s weighted, undirected network.
It is defined the same way as :meth`~bandicoot.network.clustering_coefficient_unweighted`, except that closed triplets are weighted by the number of interactions. For each triplet (A, B, C), we compute the geometric mean of the number of interactions, using the undirected weighted matrix:
The weight is normalized, between 0 and 1, by the maximum value in the matrix.