Skip to main content
100%

Force-Directed Graph

✓ Published0🌍 Public
ZZhengyan Yu
Last edited Oct 31, 2017
Created on Oct 31, 2017

This interactive force-directed graph maps character co-occurrence in *Les Misérables*, using a physics simulation of charged particles and springs to position related characters closer together. The SVG rendering relies on `d3.forceSimulation` with `d3.forceLink`, `d3.forceManyBody`, and `d3.forceCenter` forces, while `d3.drag` enables nodes to be pulled and released. An outer pie chart (`d3.pie`, `d3.arc`) encodes character groups around the layout. Data derives from Donald Knuth’s Stanford GraphBase compilation of Hugo’s novel.

AI-generated description

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.

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>

gpl-3.0 Licensed

Similar vizzes