block by enjalot 36014350348825ded276

rigid links

Full Screen

Attempting to force links to remain a specified distance.

The method is a bit crude, and probably goes against the design of the force layout’s use of weak geometric constraints. Sometimes you just have to strong arm the data…

Also using @sxywu’s trick of adding links as invisible nodes and centering them between source and target, this keeps the graph from forming straight lines in some configurations.

forked from mbostock‘s block: Collision Detection

forked from enjalot‘s block: rigid links