Graphs
Dated Dec 14, 2025; last modified on Sun, 14 Dec 2025
Dated Dec 14, 2025; last modified on Sun, 14 Dec 2025
| Random Link ¯\_(ツ)_/¯ | ||
| Dec 14, 2025 | » | Shortest Paths in a Graph
8 min; updated Dec 14, 2025
A shortest path from vertex \(s\) to vertex \(t\) in an edge-weighted digraph is a directed path from \(s\) to \(t\) with the property that no other path has a lower weight. A shortest-paths tree for a source \(s\) is a subgraph containing \(s\) and all the vertices reachable from \(s\) that forms a directed tree rooted at \(s\) such that every tree path is a shortest path in the digraph.... |