class GraphePond:
    def __init__(self):
        self.Liste = {}

    def addArc(self,u,v,p):
        if u not in self.Liste:
            self.Liste[u] = { v : p }
        else:
            self.Liste[u][v] = p