🌍 Public
Viewing a saved revision (read-only)
4ed0f1e55e904ffcab837cfd5758e3b9
Untitled
A force-directed graph renders three nodes connected by three links, with the nodes positioned via a physics simulation and drawn as gray circles with white strokes. The code uses the `d3.layout.force` API and SVG `<line>` and `<circle>` elements, with the node and link positions updated on each `tick` event. Node names are parsed from a hardcoded `links` array.
AI-generated descriptionAn example including some commonly used features of SVG.