AStarShortestPathAlgorithm single distance

Topics: algorithm, graph
Oct 11, 2016 at 12:24 PM
Edited Oct 11, 2016 at 12:24 PM
As far as I can tell, I can only use AStarShortestPathAlgorithm to calculate the distances between a vertex and all other vertices. I just want to know the distance between one vertex and another, without any other unnecessarily calculations. How do I do this?