We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6504c31 commit 3ccf285Copy full SHA for 3ccf285
graphs/greedy_best_first.py
@@ -89,7 +89,7 @@ def __eq__(self, other):
89
90
class GreedyBestFirst:
91
"""
92
- >>> grid = [[0, 0, 1, 0, 0], [0, 1, 0, 0, 0], [0, 0, 1, 0, 1], [1, 0, 0, 1, 1], [0, 0, 0, 0, 0]]
+ >>> grid = TEST_GRIDS[2]
93
>>> gbf = GreedyBestFirst(grid, (0, 0), (len(grid) - 1, len(grid[0]) - 1))
94
>>> [x.pos for x in gbf.get_successors(gbf.start)]
95
[(1, 0), (0, 1)]
0 commit comments