Re: [graphviz-interest] Avoiding label overlapping

mojohn <[email protected]> Thu, 3 Oct 2013 13:13:54 -0700 (PDT)
Newsgroups gmane.comp.video.graphviz
Message-ID <[email protected]>
The "decorate=true" is trying to put in what are called "leader lines"
connecting the edge labels to the edges - and sometimes it just adds clutter
to the drawing.

Here's my version of your graph - does this work any better for you?

Notice I use a directed graph (digraph), but am specifying undirected edges
(dir=none).
Also that I used "->" for edges, since it's now a digraph.
Also that I set "rank=same" for nodes a and b, and b and c, to force them to
be at same...rank. :)

One more idea for improved readability: you could color the edges and the
related edge labels the same *color*, and then the reader's eye would more
easily relate the edge label with its edge. In other words, since you have 6
edges, you could use 6 distinct colors for the edges and their labels, which
could reduce confusion about which label goes with which edge.

Hope this helps!

John


digraph 
{ 
  edge [ dir=none ]
  a
  b
  c
  d
  {rank=same; a ; b ; }
  {rank=same; c ; d ; }
  a -> b [label="a--b" ]
  a -> c [label="a--c" ]
  a -> d [label="a--d" ]
  b -> c [label="b--c" ]
  b -> d [label="b--d" ]
  c -> d [label="c--d" ]
}



--
View this message in context: http://graphviz.996277.n3.nabble.com/Avoiding-label-overlapping-tp3801p3948.html
Sent from the Graphviz - Interest mailing list archive at Nabble.com.
_______________________________________________
[email protected]
http://lists.research.att.com/mailman/listinfo/graphviz-interest