Skip to content

arrowhead missing from tail-end of edge

Steps to reproduce

If rank=same and some edge attributes are set, no arrowhead is drawn on tail-end of edge.
(May be swapped to head-end)

digraph S{

//  under certain conditions, arrowhead(s) are placed on
//    forward end only
//    NOTE: rank=same is required

edge [style=bold]       //  triggers dir=both + dir=back bug
//edge [edgeX=yyy]        //  triggers bug  (bogus attribute)
//edge [XXX=yyy]          //  does NOT trigger bug  (bogus attribute)
//edge [color=red]        //  does NOT trigger bug
//edge [constraint=false]            // does NOT trigger bug
//edge [comment="good morning"]      // does NOT trigger bug
//edge [label="E78"]        //  triggers bug

 {rank=same    // no bug if this is commented out

 AA1:n  -> AA2:n   [dir=forward] //  no bug, good arrowhead
 AA3:se -> AA4:sw  [dir=back]    //  arrowhead is on wrong (head) end
 AA5:s  -> AA6:s   [dir=both ]   //  missing backwards arrowhead
 }
}

Expected Behaviour

Arrowheads on tail-end of edge. dirBothBug0

Actual Behaviour

Arrowheads on tail-end are missing: dirBothBug0

OS Version

Linux

Distributor ID: Ubuntu
Description:    Ubuntu 20.04.6 LTS
Release:        20.04
Codename:       focal

Graphviz Version

dot - graphviz version 9.0.0~dev.20230731.1317 (20230731.1317)

Additional info