Curved Links
✓ Published0🌍 Public
Mmbostock
Last edited Jul 17, 2016
Created on Jan 23, 2013
This example visualizes the character co-occurrence network from Victor Hugo’s *Les Misérables* as a force-directed graph. It replaces straight links with smooth Bézier curves by inserting an intermediate node into each connection, then uses a physical simulation to position all nodes. The code employs `d3.forceSimulation` with `d3.forceLink`, `d3.forceManyBody`, and `d3.forceCenter` forces, rendering circles and curved paths as SVG via `d3.select` and `append`. Dragging nodes is enabled through `d3.drag`, and the data comes from the embedded `miserables.json` file.
AI-generated descriptionThis variation of a force-directed graph uses intermediate nodes in links to create aesthetically-pleasing Bézier curves.
gpl-3.0 Licensed