Exemplo n.º 1
0
 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()))
Exemplo n.º 2
0
 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()))
Exemplo n.º 3
0
 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()))
Exemplo n.º 4
0
 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()))