Force-directed graph drawing (Wikipedia)
Force Directed Graph is one way to visualize Node-Link data by using force-directed layout algorithms.
The example below is using Coulomb’s Law and Hooke’s Law (and Damping effect) to calculate the kinetic energy of the graph that is to be minimized.
The Processing source code is available at https://github.com/zshiba/visualization.