Beispiel #1
0
 def test_graph_4(self):
     pathes = walk(self.graph_4, 'A')
     self.assertCountEqual(pathes, self.expected_4)
Beispiel #2
0
 def test_graph_4_loop_2(self):
     pathes = walk(self.graph_4, 'A', nb_loop=2)
     self.assertCountEqual(pathes, self.expected_4_loop_2)
Beispiel #3
0
 def test_graph_3_loop_1(self):
     pathes = walk(self.graph_3, 'A', nb_loop=1)
     self.assertCountEqual(pathes, self.expected_3_loop_1)