예제 #1
0
 def test_components(self):
     components = pynet.components(self.G)
     self.assertEqual(pynet.no_nodes(components[0]), 230)        
     components = pynet.components(self.G2)
     self.assertEqual(len(components), 2)        
예제 #2
0
 def test_no_nodes(self):
     self.assertEqual(pynet.no_nodes(self.G), 230)
예제 #3
0
 def test_no_nodes(self):
     self.assertEqual(pynet.no_nodes(self.G), 230)
예제 #4
0
 def test_components(self):
     components = pynet.components(self.G)
     self.assertEqual(pynet.no_nodes(components[0]), 230)
     components = pynet.components(self.G2)
     self.assertEqual(len(components), 2)