Asked about Trees, graphs and the rest

What does topological sort solve?

An answer that works

Ordering with dependencies: course prerequisites, build order, task scheduling. It also detects cycles, since a cycle means some nodes never reach indegree zero and the output is shorter than the input.

Reading an answer is not being able to give one. The section that teaches this is Trees, graphs and the rest, 16 hours of Data structures & algorithms.

Learn this properly