A Directed Acyclic Graph has no cycles.
That one property gives you an effective technique: you can solve problems by processing nodes in topological order.
In this section, I'll show you how to use DP on DAGs to solve path problems, counting problems, and improvement problems that would be impossible on graphs with cycles. You will learn the pattern step by step, then apply it to three real problems from CSES: Longest Flight Route, Game Routes, and High Score.