Shortest Path definition
A shortest path between two vertices is a path with the smallest total length among paths joining them.
Shortest Path in a picture
How it works
In an unweighted graph, length counts edges. In a weighted graph, add the weights of the edges used. The path can be tied with another route, and no path exists when the destination is unreachable from the start.
Worked examples
A route has weights 4, 2, and 1. What is its length?
7.
In an unweighted graph, which is shorter: two edges or three?
Two edges.
Can there be two different shortest routes?
Yes. Two paths can have the same minimum total weight.
Common mistake
Count edges only in an unweighted graph or when every edge has the same positive cost.
Quick check
What if no path reaches the destination?
Show answer
There is no shortest path to it.
Can direction change which routes are possible?
Show answer
Yes, in a directed graph.
Sources
Flashcard
Shortest Path
Reveal the definition
A shortest path between two vertices is a path with the smallest total length among paths joining them.
Effortless Math. “Shortest Path.” Math Dictionary.



