brainconn.clustering.clustering_coef_bu

clustering_coef_bu(G)[source]

The clustering coefficient is the fraction of triangles around a node (equiv. the fraction of nodes neighbors that are neighbors of each other).

Parameters:A (NxN numpy.ndarray) – binary undirected connection matrix
Returns:C – clustering coefficient vector
Return type:Nx1 numpy.ndarray