Simplifying Graph Traversals: What’s up with the “visited” array?

Breadth-first traversal