List Info

Thread: Re: edge labels and arrow




Re: edge labels and arrow
country flaguser name
United States
2008-06-04 12:21:17
bergenpeakcomcast.net wrote:
>
> Is there a way to add in this extra node per edge  in
such a way that 
> the diagram's structure doesn't change?   As soon as I
add in these 
> nodes per edge, the entire diagram structure changes
and becomes 
> unreadable.
>
>
It will be tricky within dot. When you split an edge a ->
b into two, 
you want to make sure you switch the edge directions

  dummy[shape=point]
  a -> dummy [color=red]
  dummy -> b [color=blue, dir=back]

You could also play around with edge weights and the
constraint 
attribute, but Ron's trick will probably be somewhat
fragile.

If I were doing it, I'd use a postprocessor like gvpr to
draw the edge 
the way you want it, then do the final rendering using neato
-n.

    Emden

_______________________________________________
graphviz-interestresearch.att.com
https://mailman.research.att.com/mailman/list
info/graphviz-interest

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )