block by nsonnad 5982652

Colored links in force-directed graph

Full Screen

Simple change to Mike Bostock’s force-directed graph, adding colors to links.

This simple force-directed graph shows character co-occurence in Les Misérables. A physical simulation of charged particles and springs places related characters in closer proximity, while unrelated characters are farther apart. Layout algorithm inspired by Tim Dwyer and Thomas Jakobsen. Data based on character coappearence in Victor Hugo’s Les Misérables, compiled by Donald Knuth.

index.html

miserables.json