find the route between two nodes