get the next node on the A* frontier to explore (estimated to be closest to the goal), mark it as visited, and return it
Definition at line 128 of file path.cpp.