Degree constrained minimum spanning tree calculator

Your numbers

Vertices are labeled 0 through n−1, including isolated vertices.
One edge per line: u,v,cost. No loops or duplicate pairs. Blank means no edges.
One bound per vertex in zero-based label order.

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 ↗