source code random_arboretum
The random arboretum generates random trees.
built with processing and traer.physics
Press the space bar to randomly attach a new node to another node.
Press 'c' to clear.
This is what's called a force-directed graph layout.
Vertices are particles.
Springs are connected where there are edges.
All other particles repel each other.
This tries to settle to a even layout of the graph.
Kamada-Kawai and Fruchterman Rheingold are the standard algorithms.
This is sort of an explicit physical version.