Minimum Spanning Tree

Kruskal's and Prim's algorithms animated. Click canvas to add nodes, or generate a random graph.

Click to add nodes, then animate.