Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » DirectedGraphLayout: how to set/hint rank?(setting tree root node)
DirectedGraphLayout: how to set/hint rank? [message #689470] Mon, 27 June 2011 17:26
Christian  is currently offline Christian Friend
Messages: 1
Registered: June 2011
Junior Member
My plug-in is much like the GEF FlowExample, in that it graphs activities and transitions to/from. One attribute of my flows is they can have only one "start" and one "final" activity. Graphing pre-existing flows that I already had created before starting this plug-in, the Final activity tends to always be at the bottom of the graph; however, in complex graphs the Start activity does not always appear at the top, especially when there are many "feedback" transitions incoming to it.

I've tried tweaking the code manipulating Node.rank and DirectedGraph.ranks, but there is a lot of it and it's a bit nebulous to me. I haven't had any success yet. Does anyone have any suggestions on what to tweak or how to set up the Node/Edges to get my Start activity to the top?


I managed to solve the "cycle" issue of some of my transitions which had the same destination as the source by not "contributing" these Edges to the graph algorithm. When it came time to paint the connector, I just calculated points in a circle.

[Updated on: Mon, 27 June 2011 17:27]

Report message to a moderator

Previous Topic:GEF 4.0 branch & Eclipse4
Next Topic:[Zest] : drawing rectangle, circle, etc...
Goto Forum:

Current Time: Thu Dec 09 02:27:04 GMT 2021

Powered by FUDForum. Page generated in 0.01186 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top