idea
Parse a graph by processing the entire next level before recursing into the next one.
This can be done using a queue:
- Add root to queue.
- While queue has elements
- Pick first from queue
- Process element and mark as read
- Add all children.
- Loop.
Breadth first search
Parse a graph by processing the entire next level before recursing into the next one.
This can be done using a queue: