We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent daa515a commit b0c78caCopy full SHA for b0c78ca
a_star/a_star.py
@@ -88,7 +88,7 @@ def a_star(graph, start, end):
88
89
current_node = frontier.pop()
90
91
- if current_node.point == end:
+ if not current_node or current_node.point == end:
92
return frontier
93
94
for neighbor in graph.neighbors( current_node.point ):
0 commit comments