Re: [graphviz-interest] How do I make 3 edges meet seamlessly at a point?

John Ellson <[email protected]> Sat, 30 Aug 2014 13:53:29 -0400
Newsgroups gmane.comp.video.graphviz
Message-ID <[email protected]>
Good question.    I thought we had a way of doing this, but the best I 
could do today was:

digraph Perl
{
   edge [color=grey]
   node [shape=oval style=filled]
   Carnegie [color=aquamarine]
   Murrumbeena [color=bisque]
   Oakleigh [color=blueviolet]
   one [width=0 height=0 fixedsize=1 label="" color=grey]
   Murrumbeena -> one [arrowhead=none]
   Carnegie -> one [arrowhead=none]
   one -> Oakleigh [tailclip=0]
}

which still isn't perfect as you can see from the attached zoom-in image 
of the junction.

This attributres for node "one" still have finite pensize, so its still 
drawing a filled oval.  If you set pensize=0 it leaves a tiny fill, but 
there is still a gap as if the nodesize is still not really 0.

Perhaps we should add a "shape=zero" that does this properly...

There is an edge feature called "concentrate" that sound like it should 
do this .. but I couldn't get it to do anything.

John



On 08/29/2014 07:35 PM, Ron Savage wrote:
> Hi
>
> This is dot - graphviz version 2.38.0 (20140413.2041).
>
> The best I can do is:
>
> digraph Perl
> {
> graph [ rankdir="TB" ]
> node [ shape="oval" ]
> edge [ color="grey" ]
> node [ shape="oval" style="filled" ]
> "Carnegie" [ color="aquamarine" ]
> "Murrumbeena" [ color="bisque" ]
> "Oakleigh" [ color="blueviolet" ]
> "one" [ fixedsize="shape" height="0" style="invis" width="0" ]
> "Murrumbeena" -> "one" [ arrowhead="none" samehead="1" ]
> "Carnegie" -> "one" [ arrowhead="none" samehead="1" ]
> "one" -> "Oakleigh" [ sametail="1" ]
> }
>
> But this leaves a small gap at the top of the vertical edge.
>
> Is there some option which forces this gap to vanish?
>

_______________________________________________
[email protected]
http://lists.research.att.com/mailman/listinfo/graphviz-interest
zoom-in-on-junction.png (image/png, 4.7 KB) - not displayed