graphviz-java
graphviz-java copied to clipboard
How to set rankdir with LR?
MutableGraph containerGraph = Factory.mutGraph ()
.setDirected ( true )
.graphAttrs ().add ( RankDir.LEFT_TO_RIGHT );
Then i get an error.
Cannot resolve method 'add(guru.nidi.graphviz.attribute.Rank.RankDir)'
What should I do
Hi @essayZW,
For me, the following works:
g.graphAttrs.add("rankdir", "LR")
Hi @frademacher Thanks for your help, I solved this problem.