remove useless code from the graph class
remove useless code from the graph class for the dfs code
create automated test for the bfs