From e9ada04aa937de3eb1148d159564595be15c33b7 Mon Sep 17 00:00:00 2001 From: Andrew Ekstedt Date: Sat, 17 Dec 2022 19:29:26 -0800 Subject: [PATCH] lib/astar: report final queue length --- lib/astar.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/astar.py b/lib/astar.py index 99b5ee0..b6eed66 100644 --- a/lib/astar.py +++ b/lib/astar.py @@ -27,6 +27,7 @@ def search(start, is_goal, neighbors, heuristic=None): if is_goal(this): print("astar: visited", len(done), "nodes") + print("astar: pending", len(q), "nodes") # reconsruct the path n = this path = []