0
digraph {
  1 -> 2 -> 3;
  2 -> { rank = sink; end};
}

example

How can I force the "end" node to be centered horizontally (in the same column as the first node)?

Julian Lettner
  • 3,309
  • 7
  • 32
  • 49

1 Answers1

0

You may use the group attribute of the nodes:

digraph {
  3[group=b];
  node[group=a]
  1 -> 2 -> end;
  2 -> 3;
}

See also this and this answer.

Community
  • 1
  • 1
marapet
  • 54,856
  • 12
  • 170
  • 184