Bounce Back Force
Gravity Force
Log Base
Nominal Distance
Spring Force Law


The spring layout method is a classical force directed layout, which uses spring and ellectrical forces.

Graph edges are threated as springs. Springs aim to ensure that the distance between adjacent vertices is approximately equal to the spring length. The parameters of the spring force are controlled by an instance of the NSpringForce class, accessible from the SpringForce property.

Graph vertices are threated as ellectically charged particles, which repel each other. The electical force aims to ensure that vertices should not be close together. The parameters of the electrical force are controlled by an instance of the NElectricalForce class, accessible from the ElectricalForce property.

The spring force accepts per edge defined spring lengths and spring stiffness. In this example the red connectors are with smaller spring lenght are with greater stiffness than the blue connectors. Because of that they tend to be displayed closer to each other.

The electrical force accepts per vertex provided ellectric charges. Thus some vertices may be more repulsive than others.