brainconn.utils.visualization.writetoPAJ

writetoPAJ(CIJ, fname, directed)[source]

This function writes a Pajek .net file from a numpy matrix

Parameters:
  • CIJ (NxN numpy.ndarray) – adjacency matrix
  • fname (str) – filename
  • directed (bool) – True if the network is directed and False otherwise. The data format may be required to know this for some reason so I am afraid to just use directed as the default value.