Missing Arrowheads

Ive made a tool to generate Graphviz files from project data. I've shared this tool with others and told them to install Graphviz to generate the figures. When they generate the figures, they see no arrowheads, but when I generate them the arrowheads are just fine. I'm using undirected graphs in dot with explicit arrowhead attributes on the edges and the rankdir="LR" attribute on the graph. I've been using Graphviz for a while so I'm on v2.20.3 but the other guy is using v2.28. Did something change in this area? Is there another attribute I need to add to get the arrowheads to always show?

Missing Arrowheads

Yes, there was a change made to arrowheads somewhere between 2.20 and 2.28. Basically, the semantics of the dir and arrowhead attributes were mixed; see bug 1695. Now, the arrowhead and arrowtail attributes specify what mark is used if an arrowhead is drawn. The dir attribute specifies which ends of the edge get an arrowhead. For undirected graphs, dir is none by default, so no heads are drawn. Just add dir=forward to your graph.

Recent comments