One undirected graph laid out vertically by BFS depth layer, each layer color-coded, showing how the traversal spreads outward level by level.
This is a live preview — pan and zoom to explore the diagram. Open it in the full editor below to edit, export, or share it.
When to use this Excalidraw example
Use it to explain graph representation (adjacency) and BFS (queue, FIFO) spreading one layer at a time — or adapt the same graph to trace DFS (stack/recursion) instead.
Open this example in the full Excalidraw editorMake it your own
The example opens as a local drawing in the editor. Move or rename shapes, add arrows and notes, export PNG or SVG, or use the Share button to copy a compressed URL containing the current scene.