Both DFS and BFS implementation on graph