Skip to content
Breadth-first search

Breadth-first search

However, this is not the only way to traverse a graph.