示例#1
0
 def test_bipartite(self):
     mapping = network_flow.calculate_entity_mapping(self.G,
                                                     method='bipartite')
     self.assertDictEqual(self.expected_map, mapping)
示例#2
0
 def test_weighted(self):
     mapping = network_flow.calculate_entity_mapping(self.G,
                                                     method='weighted')
     self.assertDictEqual(self.expected_map, mapping)
示例#3
0
 def test_default(self):
     mapping = network_flow.calculate_entity_mapping(self.G)
     self.assertDictEqual(self.expected_map, mapping)