문제

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)?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top