def putEdge(self, G, edge):
    self.capacity -= G.edges[edge]['bandwidth']
    self._edges.append(edge)
def putEdge(self, G, edge):
    self.capacity -= G.edges[edge]['bandwidth']
    self._edges.append(edge)