Force-directed graph drawing algorithms are a class of algorithms for drawing graphs in an aesthetically-pleasing way. Their purpose is to position the nodes of a graph in two-dimensional or three-dimensional space so that all the edges are of more or less equal length and there are as few crossing edges as possible, by assigning forces among the set of edges and the set of nodes, based on their relative positions, and then using these forces either to simulate the motion of the edges and nodes or to minimize their energy.
d3-force
This module implements a velocity Verlet numerical integrator for simulating physical forces on particles. The simulation is simplified: it assumes a constant unit step \Delta t=1 for each step, and a constant unit mass m=1 for all particles. As a result, a force F acting on a particle is equivalent to a constant acceleration a over the time interval \Delta t , and can be simulated simply by adding to the particle's velocity, which is then added to the particle's position.