Try the same model with your own values. No checks, nothing recorded.
Back to Graphs: representation, BFS and DFS
This is the six-node graph from the lessons, with no set task. Pick any start node and run breadth-first search (BFS) or depth-first search (DFS). The strip under the graph shows the queue or the stack, and the order strip shows the order of the visits. After BFS, the distances appear under the nodes.
Pick a start node and run an algorithm.
This is the graph with arrows from the first lesson. A walk follows arrows forwards only. Try the same walk from A, from C and from D, and compare how much of the graph each run reaches.
Pick a start node and run an algorithm.
Neighbours are always taken in alphabetical order. After BFS, a node the run did not reach shows ∞ as its distance. After DFS, look at the order strip: a node that is not on it was not reached.