Explanation
Here is the concise explanation of the Python BFS program:
1. Purpose
This program demonstrates the Breadth-First Search (BFS) graph traversal algorithm. Starting from node '5', it explores the graph level-by-level, visiting all immediate neighbors of a node before moving deeper into the graph.
2. Key Concepts
- Adjacency List: Graph structure represented using a Python dictionary where keys are nodes and values are lists of connected neighbors.
- Queue (FIFO): First-In, First-Out structure (implemented via `queue.pop(0