A demostration of graph traversal(BFS and DFS)