All topological sequences of directed graphs (backtracking method)