I need to spec开发者_JAVA百科ify position of all graph's vertices. Is it possible? Please help.
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.
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.
精彩评论