How to set vertex coordinates in Java JUNG?

I need to indicate the position of all the vertices of the graph. Is it possible? Please, help.

+3
source share
2 answers

If you say that you have existing vertex coordinates, and you want to use them to lay out your graph in the JUNG, then what is StaticLayout intended for.

+3
source

Classes in edu.uci.ics.jung.algorithms.layout used by edu.uci.ics.jung.visualization:

GraphElementAccessor : an interface for selecting graph components based on coordinates.

Layout . A generalized interface is a mechanism for returning coordinates (x, y) from vertices.

Described here .

+2
source

All Articles