{"version":"1.0","type":"rich","title":"Force-based algorithms (graph drawing) — http://en.wikipedia.org/wiki/Force-based_algorithms_(graph_drawing)","description":"This example demonstrates force-based graph drawing, showing how nodes connected by springs settle into a stable, low-energy layout. It uses a custom simulation (not a library) that iteratively applies Coulomb repulsion between all node pairs and Hooke’s law attraction along edges, integrating velocities with damping until kinetic energy falls below a threshold. Position updates are drawn to a canvas, and the data is a small, hard-coded graph of nodes and springs. The code also includes a stats display for total kinetic energy, letting viewers watch convergence.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-950917?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}