Concept Flow - Shortest Path in Unweighted Graph Using BFS
Start at source node
Initialize queue with source
While queue not empty
Dequeue current node
For each neighbor
Mark visited
Update distance & parent
Enqueue neighbor
Repeat loop
End: shortest distances & paths ready
This flow shows how BFS explores nodes level by level from the source, updating shortest distances and parents to reconstruct paths.
