Breadth-first traversal of a graph

Sign in to test your solution.