Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000914graphvizDotpublic2005-06-24 17:262011-04-28 04:03
ReporterAdolfo Montero 
Assigned Toerg 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSx86-Windows-XP SP1OS Version
Summary0000914: edge label = x crashes DOT on horizontal edges, yet head|tail-label don't
Description



Using the "rank=same" trick to better control layout, edge labels used
on any horizonal edge causes DOT.EXE to crash. Vertical labels or any
slope other than 0 seem to be OK. Also for the same failing dot file, if
the label is replaced with a headlabel or taillabel, then DOT ceases to
crash.



Verified it fails for both a graph & a digraph. Switching to neato is
not an option since I can't get the same "rank=same" trick working.



Would also be nice to support mixed ranks. I.E. start a graph with
rankdir = TB to define a few nodes & then change the rankdir = LR to
define the remaining nodes. Some trick to allow rank matching on both
the horizontal & vertical directions would be useful.



To fix the graph X below, comment out the "label=horiz" or change it to
"headlabel=horiz".



To break digraph Y below (run separately), change "headlabel=horiz" to
"label=horiz".
Steps To Reproduce

graph X {

        rankdir=TB;
        splines=true;
        1 -- 2 -- 3;
        {rank=same;B;C;D;2}
        A -- C -- E [label=vert];
        B -- C -- D [label=horiz];
}

digraph Y {

        rankdir=TB;
        1 -> 2 -> 3;
        {rank=same;B;C;D;2}
        A -> C -> E [label=vert];
        B -> C -> D [headlabel=horiz];
}
Additional Information

Suspect you may have a slope calculation problem somewhere causing a
division by zero error. This probably should be special cased to bypass
the equation & jump directly to the code that generates the output for
that special case.
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID733
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENTFixed (21 June 2005)
VERSION     2.2.1
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:03 user1 New Issue
2011-04-28 04:03 user1 Assigned To => erg


MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker