Skip to content

Commit b0c78ca

Browse files
committed
Fixed bug with Ester
1 parent daa515a commit b0c78ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

a_star/a_star.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def a_star(graph, start, end):
8888

8989
current_node = frontier.pop()
9090

91-
if current_node.point == end:
91+
if not current_node or current_node.point == end:
9292
return frontier
9393

9494
for neighbor in graph.neighbors( current_node.point ):

0 commit comments

Comments
 (0)