Document
✓ Published0🌍 Public
This example shows a minimal force-directed network graph with three nodes (Alice, Bob, Carol) and two directed links, rendered as circles in an SVG. The nodes are positioned through a D3 force simulation using `d3.forceSimulation`, `forceManyBody`, `forceLink`, and `forceCenter`. On each simulation tick, the circles’ `cx` and `cy` attributes update to reflect the computed node positions. Data is defined inline in the script, and the visualization is built with D3 v6 and SVG.
AI-generated descriptionMIT Licensed