Travertex

Made with Travertex ↗

Depth-first search on a grid graph, step by step

Press Run to watch depth-first search explore this grid from A: it follows one path as far as it can, then backs up to try the next way. The stack shows the path it’s on.

Embed this graph

Paste this into any web page. It shows the graph as it is now, and visitors can run the algorithms on it.