Mental Model
BFS explores all neighbors of a node before moving to the next level, like spreading out evenly layer by layer.
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 all rooms on the second floor, and so on.
Graph nodes connected: 1 / \ 2 3 | | 4 5 Start at node 1, explore neighbors 2 and 3 first, then their neighbors.
