brainconn.core.rich_club_bd

rich_club_bd(CIJ, klevel=None)[source]

The rich club coefficient, R, at level k is the fraction of edges that connect nodes of degree k or higher out of the maximum number of edges that such nodes might share.

Parameters:
  • CIJ (NxN numpy.ndarray) – binary directed connection matrix
  • klevel (int | None) – sets the maximum level at which the rich club coefficient will be calculated. If None (default), the maximum level is set to the maximum degree of the adjacency matrix
Returns:

  • R (Kx1 numpy.ndarray) – vector of rich-club coefficients for levels 1 to klevel
  • Nk (int) – number of nodes with degree > k
  • Ek (int) – number of edges remaining in subgraph with degree > k