This program inputs a graph and traverses through it breadth first. It uses the traditional enqueue operations to achieve the same.
- The input consisits of T+1 lines
- The first line of input contains T and val
- It follows with T lines of vertex-vertex pairs
A single line which shows traversal of the graph from a vertex.
6 2
0 1
0 2
1 2
2 0
2 3
3 3
2 0 3 1