def __init__(self): #Graphe general de la ville self.plan = grapheVille self.reseau = grapheReseau self.clients = {} (self.commandes, entrepot) = readXML.lectureCommandesXML(XML_LIVR, grapheVille) self.idEntrepot = entrepot nbNodesRes = len(self.reseau.nodes) self.mDistancesReseau = [[float("inf") for x in range(100)] for y in range(100)] for n1 in self.reseau.nodes: for n2 in self.reseau.nodes: l = (plusCourtChemin(self.reseau, n1, n2))[0] self.mDistancesReseau[n1][n2] = l
def __init__(self): #Graphe general de la ville self.plan = grapheVille self.clients = {} (self.commandes, entrepot) = readXML.lectureCommandesXML(XML_LIVR, grapheVille) self.idEntrepot = entrepot