brainconn.clustering.clustering_coef_wd

clustering_coef_wd(W)[source]

The weighted clustering coefficient is the average “intensity” of triangles around a node.

Parameters:W (NxN numpy.ndarray) – weighted directed connection matrix
Returns:C – clustering coefficient vector
Return type:Nx1 numpy.ndarray

Notes

Methodological note (also see clustering_coef_bd) The weighted modification is as follows: - The numerator: adjacency matrix is replaced with weights matrix ^ 1/3 - The denominator: no changes from the binary version

The above reduces to symmetric and/or binary versions of the clustering coefficient for respective graphs.