Travertex

Made with Travertex ↗

Breadth-first search on a tree, step by step

Press Run to watch breadth-first search visit this tree level by level from A. The queue shows which nodes are waiting, and the numbers show how many edges each node is from A.

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.