I would like to write an algorithm, which finds the shortest path between two specific vertices - source and destination - in a directed and undirected graph.
I know dijkstra's algorithm, which is used to find all the shortest paths graph. But would you modify this algorithm to find the shortest path between two vertices only?