Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002025graphvizDotpublic2011-01-15 10:142013-09-12 21:50
ReporterPascal 
Assigned Togviz 
PrioritynormalSeverityfeatureReproducibilityalways
StatusresolvedResolutionno change required 
PlatformOSx86-OSX-10.6.6OS Version
Summary0002025: Wrong direction of an edge
Description


I have an simple graph, which one edge where it is impossible to determine its direction.
Drawing it backward fixes the problem. Quite strange, isn't it?
Steps To Reproduce
digraph problematicGraph
    {
        rankdir=LR;
        {rank=min; v [label="v"];};
        {rank=same; 1; 2; 3};
        {rank=sink; 4; 5;};

        v->1;
        v->2;
        v->3;
        1->2;
        3->2;
        1->4;
        3->5;
        5->4;
        5->1;

    }
Additional Information
<CD>
digraph workaround
    {
        rankdir=LR;
        {rank=min; v [label="v"];};
        {rank=same; 1; 2; 3};
        {rank=sink; 4; 5;};

        v->1;
        v->2;
        v->3;
        1->2;
        2->3 [dir="back"];
        1->4;
        3->5;
        5->4;
        5->1;

    }
</CD>

[erg]
The drawing is correct. The problem is that the arrowhead on the
edge from 3->2 is hidden by the arrowhead on v->2.
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID2110
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENTRequest
VERSION     2.26.3
Attached Files

- Relationships

-  Notes
User avatar (0000297)
ritz (reporter)
2013-02-17 02:15
edited on: 2013-02-17 03:43

I see wrong directions for edges when I set "splines=ortho" or "splines=carved". But the problem is not seen when I set "splines=spline". I see the error when my graph is having about 20 nodes or more and have edge[dir="both",arrowhead=normal,arrowtail=dot].
dot - graphviz version 2.31.0 (20130211.0650) on linux-ubuntu

User avatar (0000301)
erg (administrator)
2013-02-25 10:58

The effect shown with the original graph is not exactly a bug: the arrowhead is there, it is just hidden. There are simple workarounds, and trying to prevent any
ambiguity in edge drawing would be fairly difficult.

If you have an example where edges are truly being drawn in the wrong direction, please upload it. Thanks.

- Issue History
Date Modified Username Field Change
2011-04-28 04:03 user1 New Issue
2011-04-28 04:03 user1 Assigned To => user1
2013-02-17 02:15 ritz Note Added: 0000297
2013-02-17 03:43 ritz Note Edited: 0000297 View Revisions
2013-02-25 10:58 erg Note Added: 0000301
2013-09-12 21:50 erg Severity minor => feature
2013-09-12 21:50 erg Status acknowledged => resolved
2013-09-12 21:50 erg Description Updated View Revisions
2013-09-12 21:50 erg Steps to Reproduce Updated View Revisions
2013-09-12 21:50 erg Additional Information Updated View Revisions


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