Labs / Computer Science

Minimum Spanning Tree

A minimum spanning tree connects every node using the least total edge weight possible. Press Play to watch the algorithm consider edges cheapest-first — green when an edge joins the tree, red when it would close a wasteful cycle. Drag nodes to reshape the graph, or switch to Connect mode to wire up your own edges.

weight 0accepted 0rejected 0step 0 / 0

What to try