In a directed graph with non-negative edge weights I can easily find shortest path from u to v using dijkstra’s. But is there any simple tweak to Dijkstra’s so that I can find shortest path from u to v through a given vertex w. Or any other algorithm suggestions?
In a directed graph with non-negative edge weights I can easily find shortest path
Share
Find the shortest path from u to w, then the shortest path from w to v.