Number: 2018
Title: Adding a label makes dot arrow point in the wrong direction
Submitter: Dave S.
Date: Fri Aug 20 12:41:29 2010
Subsys: Dot
Version: 2.26.3 (20100126.1600)
System: x86-Windows-WinXP SP3
Severity: minor
Problem:
I was attempting to build this diagram in dot and noticed that if I used no label on an edge the arrow pointed in the correct direction (from First to Second), but if I add a label the arrow's direction is reversed. I found the same behaviour on graphviz version 2.22.2 (20090313.1817) on WindowsXP, Graphviz version 2.20.2 (Tue Mar 2 21:46:26 UTC 2010) on Ubuntu Linux, and graphviz version 2.26.3 (20100126.1600) on Windows XP.

If I remove the line about '{rank = same; First; Second}' the arrow also points in the right direction.

Let me know if you need more information.
Input:

//to get my output I am doing
//dot -Tpng -o test.png test.dot

digraph ArrowTestCase {

rankdir=LR

//First -> Second [label=""] // arrow correct way
First -> Second [label="Some label here"] // arrow wrong way

{rank = same; First; Second}

}
Comments:
Thanks for creating the Graphviz suite! It really rocks :D

[erg] This bug has been fixed in the 2.27 working version.
Owner: erg
Status: Fixed