I would like to add custom forces to a force-directed-layout in Prefuse. Specifically I would like to make a) edges between specific nodes very rigid, b) introduce directed edges such that the source vertex tends to move above the target vertex.
Any clues how to proceed?
One can sub-class the standard
SpringForceand add further constraints. The following works pretty well: