block by mbostock 76da6085849bff8b6e03

Prim’s Algorithm IV

Full Screen

Color-cycling applied to a spanning tree generated by Prim’s algorithm. This version rotates hue; see what happens when you vary periodicity instead.

Updated Example →

index.html

cubehelix.min.js

generate-prims.js