예제 #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])
예제 #2
0
파일: test_graphs.py 프로젝트: dsacc/pygsp
 def test_RandomRing():
     G = graphs.RandomRing()
예제 #3
0
 def test_randomring(self):
     graphs.RandomRing()
예제 #4
0
 def test_RandomRing():
     G = graphs.RandomRing()
     needed_attributes_testing(G)