Directed Cyclic Graph/Tree and Draw2d [message #157041] |
Fri, 05 November 2004 19:18 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Donna Gresh![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=gresh%40us.ibm.com) Messages: 30 Registered: July 2009 |
Member |
|
|
This is a multipart message in MIME format.
--=_alternative 006A026585256F43_=
Content-Type: text/plain; charset="US-ASCII"
I have a need to draw a tree which is cyclic. I would like to create
something where all edges go out the top of the source node and come in at
the bottom of the target node. Thus for example if there is a cycle
between two nodes which lie one above the other, *two* edges would be
drawn: one from the "top-of-the-lower" to the "bottom-of-the-upper", and
another which bends around, starting from the "top-of-the-upper" and drawn
down and around, coming in at the "bottom-of-the-lower"
My first attempt, based on DirectedGraphDemo, adding an edge from node a
to b and also an edge from b to a, yielded a result which had a single
edge with an arrow head at both ends. It implies the same thing, but does
not convey what my users expect to see.
I did not see any examples in the draw2D demos which had this sort of
situation. I tried reading the javadoc on the varous Node, Edge,
DirectedGraph, DirectedGraphLayout, etc. but there is very little info on
what the parameters and methods actually do for any of these.
Thanks for any pointers.
--=_alternative 006A026585256F43_=
Content-Type: text/html; charset="US-ASCII"
<br><font size=2 face="sans-serif">I have a need to draw a tree which is
cyclic. I would like to create something where all edges go out the top
of the source node and come in at the bottom of the target node. Thus for
example if there is a cycle between two nodes which lie one above the other,
*two* edges would be drawn: one from the "top-of-the-lower" to
the "bottom-of-the-upper", and another which bends around, starting
from the "top-of-the-upper" and drawn down and around, coming
in at the "bottom-of-the-lower"</font>
<br>
<br><font size=2 face="sans-serif">My first attempt, based on DirectedGraphDemo,
adding an edge from node a to b and also an edge from b to a, yielded a
result which had a single edge with an arrow head at both ends. It implies
the same thing, but does not convey what my users expect to see. </font>
<br>
<br><font size=2 face="sans-serif">I did not see any examples in the draw2D
demos which had this sort of situation. I tried reading the javadoc on
the varous Node, Edge, DirectedGraph, DirectedGraphLayout, etc. but
there is very little info on what the parameters and methods actually do
for any of these.</font>
<br>
<br><font size=2 face="sans-serif">Thanks for any pointers.</font>
--=_alternative 006A026585256F43_=--
|
|
|
|
Powered by
FUDForum. Page generated in 0.04018 seconds