Travertex

Made with Travertex ↗

Minimum spanning tree with Kruskal’s algorithm

Imagine laying cable to connect every building for the least total length. Press Run to watch Kruskal’s algorithm take the lightest edge that doesn’t make a loop, until every node is joined.

Embed this graph

Paste this into any web page. It shows the graph as it is now, and visitors can run the algorithms on it.