find a path (not the fastest) through the graph