block by mbostock aa7edeac67253ea5de7f

Prim’s Algorithm V

Full Screen

Another variation of color-cycling a spanning tree generated by Prim’s algorithm. Here the periodicity of the color scale by tree depth is varied over time, alternating between emphasis of micro and macro structure. This idea was suggested in a Hacker News comment.

Updated Example →

index.html

cubehelix.min.js

generate-prims.js