コード例 #1
0
ファイル: test_network.py プロジェクト: CartoDB/pysal
 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
ファイル: test_network.py プロジェクト: youngpong/pysal
 def test_no_nodes(self):
     self.assertEqual(pynet.no_nodes(self.G), 230)
コード例 #3
0
ファイル: test_network.py プロジェクト: CartoDB/pysal
 def test_no_nodes(self):
     self.assertEqual(pynet.no_nodes(self.G), 230)
コード例 #4
0
ファイル: test_network.py プロジェクト: youngpong/pysal
 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)