Click a node to find the geodesic distances