changing direction of edges

91 views
Skip to first unread message

iliana avila

unread,
Jan 6, 2005, 5:35:26 PM1/6/05
to cytoscap...@googlegroups.com
What is the easiest way of flipping the direction of an edge programatically?

If my graph looks like this (there is an actual arrow defined by a
visual style):

a ----> b

I want to make it look like this:

a <---- b

Is the easiest way removing the edge and creating a new one with
switched node order and then copying all the edge attributes from the
old one to the new one?

Thanks.

-iliana

Rowan Christmas

unread,
Jan 6, 2005, 5:40:02 PM1/6/05
to cytoscap...@googlegroups.com
yes that is the best way,

if we allow for edge direction to change, then it potentailly messes
up algorithms that expect an edge to be a certain direction.
Reply all
Reply to author
Forward
0 new messages