Does Graphviz support Right-to-left graph layout?

Let's say I have a graph that needs to be produced both in English and in Arabic. Is there a configuration for setting the direction of the arrows and layout of the nodes?

Re: Does Graphviz support Right-to-left graph layout?

Yes it does.

on the command line you can use:

-Grankdir=RL

or in the graph:

   graph [rankdir=RL]

Note that this only changes the direction of the graph;  it doesn't change the direction of the text in the labels (I don't recall if we can do that).

For fixed coordinates just invert the X

Thanks! Turns out that I need to use fixed coordinates (with neato) so I can just invert the x coordinates for each node.   e.g. 200 becomes -200

Recent comments