🌍 Public
Viewing a saved revision (read-only)
1809402e0b904d67939e7c11cf56f27f
Network graph
This example demonstrates a simple network graph consisting of three nodes (Alice, Bob, and Carol) connected by two directed links, forming a chain. It uses d3.forceSimulation with forceManyBody, forceLink, and forceCenter to compute node positions, and logs each simulation tick to the console. The visualization renders as an SVG-less HTML page with no explicit drawing code, relying solely on the simulation’s output for node and link coordinates. The data is hardcoded as JavaScript arrays of node objects and link indices.
AI-generated description