displaying parallel edges

Oct 12, 2009 at 3:43 PM

I'm developing an application using graph#.

I would like to visualize the graph below.

All works fine except the last edge: 6to6: I can't understand how to show that! 

Can someone post a short example on how to do this?

Thanks a lot.

Antonio

<?xml version="1.0" encoding="utf-8"?>
<graphml xmlns="http://graphml.graphdrawing.org/xmlns">
  <graph id="G" edgedefault="directed" parse.nodes="7" parse.edges="10" parse.order="nodesfirst" parse.nodeids="free" parse.edgeids="free">
    <node id="step 0"/>
    <node id="step 1"/>
    <node id="step 2"/>
    <node id="step 3"/>
    <node id="step 4"/>
    <node id="step 5"/>
    <node id="step 6"/>
    <edge id="0to1" source="step 0" target="step 1" />
    <edge id="1to2" source="step 1" target="step 2" />
    <edge id="2to3" source="step 2" target="step 3" />
    <edge id="0to3" source="step 0" target="step 3" />
    <edge id="3to0" source="step 3" target="step 0" />
    <edge id="1to4" source="step 1" target="step 4" />
    <edge id="1to5" source="step 1" target="step 5" />
    <edge id="5to6" source="step 5" target="step 6" />
    <edge id="6to3" source="step 6" target="step 3" />
    <edge id="6to6" source="step 6" target="step 6" />
  </graph>
</graphml>

Developer
Nov 11, 2009 at 10:06 AM

I am in trouble whene think about an edge that start from one vertex and end on the same vertex.

Actually is impossible to reach this kind of drawing.

Are you seure I exposed your correct problem?

Nov 12, 2009 at 10:21 AM

Yes, this is the problem.

I sent an e-mail to palinkas about it and he suggested me to create a new edge routing, but this doesn't solve my problem.

I have created an edge routing inspired to the one proposed about Sugiyama (Orthogonal).

Unfortunately it is not what I need. 

What I really need is the one that an edge starts from and ends to the same vertex and when I move this vertex, the loop-edge, follows the vertex in matter. 

I would like to show this problem using images but unfortunately I can't post them in this forum.

I would like also to know where the edges are drawn so I can draw them by a routing made by my self.

Thanks

Developer
Nov 13, 2009 at 3:17 PM

The Edge style is implemented into the Generic.xaml file inside the GraphSharp.Controls project.