One application I've used is in the Isomap algorithm: a shortest-path search over the graph of neighbors is used to approximate geodesic distances between points, and thereby learn the manifold geometry.