Bug fix for mk_undirected, add bfs and dfs operations