Gomory Hu all pairs minimum cut tree calculator

Your numbers

Vertices are labeled consecutively from 1 through this number, including isolates.
One u,v,weight row per edge; bounded nonnegative integers.

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 ↗