I was going through the solution to find all the topological sorts of a directed acyclic graph using backtracking with kahn sorting.
Complete solution is here: https://ww