if you give None as a goal, then it traverses the entire grid and finds the shortest path to every node. the distances can then be queried via the get_info that is passed in as an argument
$ opam switch create . --deps-only -y $ dune build