/** * Obtain the shortest path connecting the source and the target, by using the * classical Dijkstra shortest path algorithm. * * @param sourceVertex * @param targetVertex * @return */ public Path GetShortestPath(BaseVertex sourceVertex, BaseVertex targetVertex) { DijkstraShortestPathAlg dijkstraAlg = new DijkstraShortestPathAlg(graph); return(dijkstraAlg.GetShortestPath(sourceVertex, targetVertex)); }