Graph for picture taking
This force-directed graph visualizes character co-occurrence in *Les Misérables*, showing how often pairs of characters appear together. The D3 `d3.forceSimulation` API positions related characters closer together while repelling unrelated ones, with link stroke width reflecting co-occurrence frequency. Nodes are colored by cluster and rendered as SVG circles, with tooltips showing character names. The layout uses D3 v4 forces including `forceManyBody`, `forceLink`, and `forceCenter`, with drag interactions enabled via `d3.drag`. Data comes from Donald Knuth’s compiled character co-appearances.
AI-generated descriptionThis 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.
Compare this display to a force layout with curved links, a force layout with fisheye distortion and a matrix diagram.
forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/4062045'>Force-Directed Graph</a>
forked from <a href='http://bl.ocks.org/nixsee/'>nixsee</a>'s block: <a href='http://bl.ocks.org/nixsee/eea893a283ef29b5a56adcc66ed4c41b'>Force-Directed Graph bostockv4</a>