About the BFS & DFS Visualizer
A free tool for stepping through breadth-first and depth-first graph traversal.
What it is
This visualizer runs breadth-first search (BFS) or depth-first search (DFS) on a graph you define, letting you step forward and backward through the traversal to see exactly which node is visited next and what remains in the queue or stack at each point.
Features
Custom graphs
Define any graph using simple text input.
BFS and DFS
Compare both algorithms on the same graph.
Step-through control
Move forward and backward one node at a time.
Instant, private
Runs entirely in your browser. No data is sent anywhere.