Search code examples
graphvisualizationjung

Changing shape and position of edges in Jung


I need to arrange the nodes in a particular way. I have tried with static layout. I can change the position of the nodes but fails to place the edges in specific locations. The static layout has a setLocation method that I used to change the position of the node but for edges, I have no idea about how to place them in specific locations so that newly positioned nodes are connected with edges.

Another question: How can I change the shape of an edge in Jung by overriding the transform method.


Solution

  • JUNG does not provide good support, at this time, for edge placement. EdgeShape, and in particular EdgeShape.Orthogonal, will show you what built-in support exists.