#NEWLINE# def loadNetwork( self , path ) : #NEWLINE# #INDENT# "\n        :param path: Path to the map file, of form\n            '/Domains/SystemAdministratorMaps/mapname.txt'\n            \n        Sets the internal variables ``_Neighbors`` and ``_Edges``, where each \n        cell of ``_Neighbors`` is a list containing the neighbors of computer \n        node <i> at index <i>, and ``_Edges`` is a list of tuples (node1, node2)\n        where node1 and node2 share an edge and node1 < node2.\n\n        " #NEWLINE# _Neighbors = [ ] #NEWLINE# f = open ( path , 'rb' ) #NEWLINE# reader = csv . reader ( f , delimiter = ',' ) #NEWLINE# self . computers_num = 0 #NEWLINE# for row in reader : #NEWLINE# #INDENT# row = map ( int , row ) #NEWLINE# _Neighbors . append ( row ) #NEWLINE# self . computers_num = max ( ( max ( row ) + 1 ) , self . computers_num ) #NEWLINE# #UNINDENT# self . setUniqueEdges ( _Neighbors ) #NEWLINE# self . setNeighbors ( )