🌍 Public
Viewing a saved revision (read-only)
9cd4fc9e7eda4e0695728a0c68d047c7
Unislink Network
This example demonstrates a minimal force-directed network layout with three named nodes and two links, showing how nodes naturally position themselves under simulated physical forces. Using the D3.js library, it initializes a `d3.forceSimulation` object with the node and link data, then applies three forces: `d3.forceManyBody()` for repulsion between all nodes, `d3.forceLink()` to pull connected nodes together, and `d3.forceCenter()` to keep the group anchored. The setup code defines the simulation but does not render the result to the screen.
AI-generated description