Mental Model
BFS explores all neighbors of a node before moving to the next level of nodes.
Analogy: Imagine you are in a building and want to visit every room floor by floor, starting from the entrance. You first check all rooms on the first floor, then move to the second floor, and so on.
Graph: 1 / \ 2 3 | | 4 5 Queue starts with [1] ↑
