Beispiel #1
0
 def test_randomring(self):
     graphs.RandomRing()
     G = graphs.RandomRing(angles=[0, 2, 1])
     self.assertEqual(G.N, 3)
     self.assertRaises(ValueError, graphs.RandomRing, 2)
     self.assertRaises(ValueError, graphs.RandomRing, angles=[0, 2])
     self.assertRaises(ValueError, graphs.RandomRing, angles=[0, 2, 7])
     self.assertRaises(ValueError, graphs.RandomRing, angles=[0, 2, -1])
Beispiel #2
0
 def test_RandomRing():
     G = graphs.RandomRing()
Beispiel #3
0
 def test_randomring(self):
     graphs.RandomRing()
Beispiel #4
0
 def test_RandomRing():
     G = graphs.RandomRing()
     needed_attributes_testing(G)