code: def __read_graph(self, network_filename):
          
          self.g = nx.read_edgelist(network_filename, nodetype=int)
docs: Read .ncol network file
  
          :param network_filename: complete path for the .ncol file
          :return: an undirected network