knots from gauss codes
A force-directed graph visualization renders abstract knot structures from Gauss codes, which encode crossings as sequences of signed numbers. The example generates a random code of length 2n and draws the resulting knot as a network of circular nodes and elliptical link paths. Each crossing appears as two connected ports, with dashed segments marking knot skeletons. The visualization uses D3 v4's `d3.forceSimulation` with link, charge, and positioning forces, while nodes are draggable and recompute their layout continuously. The SVG output shows the evolving knot structure as the simulation runs.
AI-generated descriptionBuilt with blockbuilder.org
forked from <a href='http://bl.ocks.org/shimizu/'>shimizu</a>'s block: <a href='http://bl.ocks.org/shimizu/e6209de87cdddde38dadbb746feaf3a3'>D3 v4 - force layout</a>
forked from <a href='http://bl.ocks.org/JazzTap/'>JazzTap</a>'s block: <a href='http://bl.ocks.org/JazzTap/3615b67201730ef7bfa2172974ddeb88'>D3 v4 - force layout</a>