- 追加された行はこの色です。
- 削除された行はこの色です。
#contents
* リンク
- http://www.graphviz.org/Documentation.php
- http://www.graphviz.org/Documentation/dotguide.pdf
* SYNOPSIS
dot -Tgif -o output.gif input.dot
* 単純な有向グラフ
digraph G
{
// 横方向ならLR
rankdir=TB;
from -> to;
}
* 無向グラフ
graph G
{
a -- b;
}
digraphで
edge [dir=none];
* 同列に並べる
A -> B;
{rank = same; A; B;}
** 応用
node [style=invis];
edge [style=invis];
なものを作ってそれに併せてrank = same で並べると意図したとおりに並べやすい。
** バグ
constraint=falseとrank=sameの組み合わせによってはセグメンテーション違反がでるのは 2.2.1-1の仕様らしい・・・。~
* 無向グラフ
edge [dir=none];
* 矢印を消す
from -> to [arrowhead = none];
* 配置に影響を与えない
from -> to [constraint = false];
* 複数オプション
from -> to [arrowhead = none, constraint = false];
* ノードの形を変える
* ノードの全体の形を変える
node [shape=point];