Minimum directed feedback arc set calculator with topological order

Your numbers

Vertices are labeled consecutively from 1 through this number, including isolates.
One source,destination,cost row per arc. Opposite arcs allowed; no loops or duplicate ordered pairs.

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 ↗