I have been trying to figure out a issue, in which my program does the topological sort but not in the format that I\'m trying to get. For instance if I give it the input: