V4 simple network graph
A simple network graph displays ten labeled nodes arranged into groups, with sparse links forming a cycle among several nodes. The force-directed layout uses d3.forceSimulation with a link force and a many-body charge force that has a maximum distance constraint. Nodes render as gray circles with dark strokes, and each node displays its numeric ID as a text label. The graph supports dragging via d3.drag, allowing repositioning while the simulation continues. Data is embedded inline as a JSON object in the script, and output is drawn to an SVG element.
AI-generated descriptionNetwork graph with node labels
started with this example
forked from <a href='http://bl.ocks.org/EfratVil/'>EfratVil</a>'s block: <a href='http://bl.ocks.org/EfratVil/58b872b4f15a358c3a9822f5a285c5be'>V4 simple network graph</a>