brainconn.clustering
.transitivity_wd¶
-
transitivity_wd
(W)[source]¶ Transitivity is the ratio of ‘triangles to triplets’ in the network. (A classical version of the clustering coefficient).
Parameters: W (NxN numpy.ndarray
) – weighted directed connection matrixReturns: - T (int) – transitivity scalar
- Methodological note (also see note for 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.