Peter
Peter

Reputation: 1471

Horizontal Trees in Graphviz

I've made a tree in the dot language, similar to the one here.

Is there any way I could get the tree to expand to the right, instead of downwards (so the root node is on the left and children go along to the right).

Upvotes: 78

Views: 34322

Answers (1)

CapelliC
CapelliC

Reputation: 60034

it's very easy, as long as you stick to basic layout: place rankdir="LR" near top definition. Something like

digraph unix {
  size="6,6";
  rankdir="LR";
  ...
}

Upvotes: 126

Related Questions