#contents

http://www.graphviz.org/Documentation/dotguide.pdf

 dot -Tgif -o output.gif input.dot

* 単純な有向グラフ
	digraph G
	{
		// 横方向ならLR
		rankdir=TB;
		
		from -> to;
	}

* 同列に並べる
 A -> B;
 {rank = same; A; B;}

** 応用
 node [style=invis];
 edge [style=invis];
なものを作ってそれに併せてrank = same で並べると意図したとおりに並べやすい。

** バグ
constraint=falseとrank=sameの組み合わせによってはセグメンテーション違反がでるのは 2.2.1-1の仕様らしい・・・。~

* 矢印を消す
	from -> to [arrowhead = none];


* 配置に影響を与えない
	from -> to [constraint = false];

* 複数オプション
	from -> to [arrowhead = none, constraint = false];

トップ   一覧 単語検索 最終更新   ヘルプ   最終更新のRSS