Groups
Category
Topological sort orders vertices of a directed acyclic graph (DAG) so every edge goes from earlier to later, which is perfect for dynamic programming (DP).
Topological sort orders the nodes of a directed acyclic graph (DAG) so every edge points from left to right in the order.