Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GraphViz dirType does not seem have any effect

Tags:

graphviz

dot

Simple example:

digraph G {
    dirType="back"
    a -> b
}

I would expect this to make a graph with an arrow coming from b and pointed at a. Instead I get a graph with an arrow from a pointed at b, as if the dirType was not there.

I am using GraphViz 2.28 (2.28.0) for Snow Leopard.

Is there something that I'm missing, or this is a known bug?

like image 551
chaimp Avatar asked Dec 28 '22 08:12

chaimp


1 Answers

Figured it out. It's supposed to be like this:

digraph G {
    edge [dir="back"]
    a -> b
}
like image 56
chaimp Avatar answered Dec 30 '22 08:12

chaimp