Setup Graph
BFS Controls
Graph Visualization
Colors: Green = Start, Yellow = Current, Blue = Visited, Orange = Queued
Breadth-First Search (BFS) is a graph traversal algorithm that explores nodes level by level, visiting all neighbors before moving deeper.
How it works:
Time Complexity: O(V + E) where V = vertices, E = edges