Topological sort calculator for a directed acyclic graph

Your numbers

An edge u,v requires u before v. Use at most 200 rows with labels 1 through the vertex count. Blank permits an edgeless graph.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

QuickCalculators · Full calculator and methodology ↗