# clustering_coefficient_weighted¶

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:

$weight_{abc} = (m_{ab} \; m_{bc} \; m_{ac})^{1/3}$

The weight is normalized, between 0 and 1, by the maximum value in the matrix.