Mental Model
A tree is a special kind of graph with no loops and exactly one path between nodes. A graph is more general and can have loops and multiple paths.
Analogy: Think of a family tree where each person has one parent path up, no cycles. A graph is like a city map where roads can loop and connect in many ways.
Tree: 1 / \ 2 3 Graph: 1 -> 2 -> 3 ↑ ↓ ←---------
