def test_capacities_eigenvector_gravity_one_capacity(self): fnss.set_capacities_eigenvector_gravity(self.topo, [10]) self.assertTrue( all(self.topo.edge[u][v]['capacity'] == 10 for (u, v) in self.topo.edges_iter()))
def test_capacities_eigenvector_gravity(self): fnss.set_capacities_eigenvector_gravity(self.topo, self.capacities) self.assertTrue(all(self.topo.edge[u][v]['capacity'] in self.capacities for (u, v) in self.topo.edges_iter()))
def test_capacities_eigenvector_gravity(self): fnss.set_capacities_eigenvector_gravity(self.topo, self.capacities) self.assertTrue( all(self.topo.edge[u][v]['capacity'] in self.capacities for (u, v) in self.topo.edges_iter()))
def test_capacities_eigenvector_gravity_one_capacity(self): fnss.set_capacities_eigenvector_gravity(self.topo, [10]) self.assertTrue(all(self.topo.edge[u][v]['capacity'] == 10 for (u, v) in self.topo.edges_iter()))