Mental Model
We find groups of nodes where each node can reach every other node in the same group by exploring neighbors step-by-step.
Analogy: Imagine a group of friends at a party where everyone in a group can talk to each other directly or through others. BFS is like starting from one friend and visiting all friends they can reach before moving to another group.
Graph: 0 -> 1 ā ā 2 3 Components: [0,1,2] and [3]
