Fix undirected graph dfs search, add bfs visitor