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