Mental Model
Shortest path means finding the quickest way between two points when many routes exist. Trees have only one path between points, but graphs can have many paths and loops.
Analogy: Imagine city streets (graph) versus a family tree (tree). In a family tree, you can only go one way between relatives. In city streets, you can take many routes and shortcuts to reach a place faster.
Tree: 1 / \ 2 3 Graph: 1 -> 2 -> 3 ↑ ↓ ↑ 4 ← 5 ← 6
