3

I need to specify position of all graph's vertices. Is it possible? Please help.

Jim Garrison
  • 85,615
  • 20
  • 155
  • 190
mmr
  • 31
  • 2

2 Answers2

3

If what you're saying is that you have existing vertex coordinates and you want to use those to lay out your graph in JUNG, that's what StaticLayout is for.

Joshua O'Madadhain
  • 2,704
  • 1
  • 14
  • 18
2

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

GraphElementAccessor: Interface for coordinate-based selection of graph components.

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

Described here.

Costis Aivalis
  • 13,680
  • 3
  • 46
  • 47