nunki ok for bfs dfs