Move Graph out of global scope and into astar.Graph