def canFitEdge(self, G, edge):
    if ((self.capacity - G.edges[edge]['bandwidth']) >= 0):
        return True
    else:
        return False
def canFitEdge(self, G, edge):
    if ((self.capacity - G.edges[edge]['bandwidth']) >= 0):
        return True
    else:
        return False