lib/astar: report final queue length
parent
e1fb37d229
commit
e9ada04aa9
|
@ -27,6 +27,7 @@ def search(start, is_goal, neighbors, heuristic=None):
|
||||||
|
|
||||||
if is_goal(this):
|
if is_goal(this):
|
||||||
print("astar: visited", len(done), "nodes")
|
print("astar: visited", len(done), "nodes")
|
||||||
|
print("astar: pending", len(q), "nodes")
|
||||||
# reconsruct the path
|
# reconsruct the path
|
||||||
n = this
|
n = this
|
||||||
path = []
|
path = []
|
||||||
|
|
Loading…
Reference in New Issue