brainconn.reference.randmio_und

randmio_und(R, itr)[source]

This function randomizes an undirected network, while preserving the degree distribution. The function does not preserve the strength distribution in weighted networks.

Parameters:
  • W (NxN numpy.ndarray) – undirected binary/weighted connection matrix
  • itr (int) – rewiring parameter. Each edge is rewired approximately itr times.
Returns:

  • R (NxN numpy.ndarray) – randomized network
  • eff (int) – number of actual rewirings carried out