Update for the new traversal egg, more flexible bfs/dfs