Cant we do it using bfs and add nbr…it will give the same result as by dfs?
Cant we do it using bfs and add nbr..it will give the same result as by dfs?
Read the answers on this link https://stackoverflow.com/questions/25229624/using-bfs-for-topological-sort