2013-12-30 Graphvis 使用例 その2 Graphvis 以下の内容で、sample.dot を作成 graph { 1 -- 6; 1 -- 12; 1 -- 15; 1 -- 16; 2 -- 3; 2 -- 8; 2 -- 10; 3 -- 4; 3 -- 6; 3 -- 9; 5 -- 6; 7 -- 15; 11 -- 16; 13 -- 15; 14 -- 15; } 以下のコマンドを入力 $ dot -Tpng sample.dot -o sample.png 画像 sample.png が出力される 参考: 書いたグラフ(サンプルの2番目): http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1184 属性リスト: http://www.graphviz.org/content/attrs ノードの形状リスト: http://www.graphviz.org/content/node-shapes