Minimum spanning tree calculator from weighted edges

Your numbers

Vertices are numbered 1 through this count. Include vertices without edges.
One undirected edge per row. Integer costs may be negative or zero. Leave empty for isolated vertices.

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 ↗