Number: 50
Title: dot sometimes misplaces edge labels
Submitter: Steve Atwell
Date: Sat Sep 15 14:22:35 2001
Subsys: Dot
Version: 1.7.7
System: *-*-
Severity: major
Problem:
Edge labels occasionally get placed a fair distance from the edges they belong to. The problem seems to have a higher probability of occurence if the graph is more dense. It seems that usually the label is translated in only the X or Y directory, not both.

In the given example, all the labels except "bad" seem to get placed correctly. "bad" gets placed much too high and on top of node Q.
Input:

digraph "badlabel" {
    node [shape = circle];
    rankdir = LR;
    P; Q; R;
    P -> Q [label = "ok"];
    Q -> P [label = "ok"];
    P -> R [label = "bad"];
    Q -> Q [label = "ok"];
    Q -> R [label = "ok"];
}
Output file: b50.ps
Comments: With most graphs that have this problem (including the example given), graphviz 1.5 will render them correctly. I have several other example graphs that cause this same behavior. Email me if you are interested in them.
Owner: north
Status: Fixed