Displaying multiple edges between two vertices

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Displaying multiple edges between two vertices

ThatGuy
Hi,
i'm working on a problem that requires me to have at least two edges between most of the vertices (one forward, one backward). To keep track if the algorithms are working, i view them via a JFrame. Right now i've positioned the vertices by hand via a function, but that's kind of annoying to do as the graph grows. The edges and their labels are also on top of each other, so you can't really read them.
Is there a way to automatically space out the vertices, edges and the labels on the edges?
I know that the JUNG framework has Layouts that automatically position the graph in a circle and makes sure that the edges aren't on top of each other. Is there something similar available?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Displaying multiple edges between two vertices

Joris Kinable
Hey,

JgragphT doesnt have something like that. But JgraphT combines nicely with JgraphX, which basically is its graphical counterpart. I suggest to use that package next to JgraphT. JgraphX has several layout optimizers.

br,

Joris


On Sun, Apr 7, 2013 at 4:36 PM, ThatGuy <[hidden email]> wrote:
Hi,
i'm working on a problem that requires me to have at least two edges between
most of the vertices (one forward, one backward). To keep track if the
algorithms are working, i view them via a JFrame. Right now i've positioned
the vertices by hand via a function, but that's kind of annoying to do as
the graph grows. The edges and their labels are also on top of each other,
so you can't really read them.
Is there a way to automatically space out the vertices, edges and the labels
on the edges?
I know that the JUNG framework has Layouts that automatically position the
graph in a circle and makes sure that the edges aren't on top of each other.
Is there something similar available?



--
View this message in context: http://jgrapht-users.107614.n3.nabble.com/Displaying-multiple-edges-between-two-vertices-tp4024791.html
Sent from the jgrapht-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
jgrapht-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jgrapht-users


------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
jgrapht-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jgrapht-users
Loading...