Skip to content
  1. Examples

Force layout

This example shows how to use the force-directed layout which is the most common layout used to position nodes in a graph. charge defines the strength with which the nodes repel each other. gravity stands for the global force, pulling the graph to its mass center. elasticity defines how the nodes collide with each other.