Added API for ShortestPath algorithms