brainconn.reference.makefractalCIJ

makefractalCIJ(mx_lvl, E, sz_cl)[source]

This function generates a directed network with a hierarchical modular organization. All modules are fully connected and connection density decays as 1/(E^n), with n = index of hierarchical level.

Parameters:
  • mx_lvl (int) – number of hierarchical levels, N = 2^mx_lvl
  • E (int) – connection density fall off per level
  • sz_cl (int) – size of clusters (must be power of 2)
Returns:

  • CIJ (NxN numpy.ndarray) – connection matrix
  • K (int) – number of connections present in output CIJ