AStarShortestPathAlgorithm single distance

Topics: algorithm, graph
Oct 11, 2016 at 11:24 AM
Edited Oct 11, 2016 at 11:24 AM
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?