All examples By author By category About

mathnathan

rigid links

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

forked from enjalot's block: rigid links