continuous version of find_shortest_path added.