fcml2dot (0.1) | 2009-03-22 19:06 |
グラフ描画プログラムGraphviz(Graph Visualization Software)で使用される、グラフ記述言語。
途中案(資料のAjax/Graphvizを使うとプレビューできます) // START node[shape=rect style=rounded height=0.2 width=1]; start; end; // FUNC node[shape=rect style=""]; funcA;funcB;funcC; // SWITCH node[shape=diamond style=""]; switch; // CONNECT node[shape=circle label="" width=0.2]; connect; start->funcA->switch->funcB->end[weight=10]; switch->funcC->connect;
途中案2 digraph { subgraph cluster_1 { label="main2"; node[height=0.2, width=1]; node[shape="diamond", style=""]; switch_3[label="OK?"]; node[shape="rect", style=""]; do_2[label="init"]; do_11[label="foo"]; node[shape="record", style=""]; call_6[label="\ |error_func|\ "]; node[shape="rect", style="rounded"]; sub_1[label="main2"]; endsub_14[label="END"]; node[shape="point", height=0, width=0]; return_7; sub_1 -> do_2; do_2 -> switch_3; switch_3 -> call_6[taillabel="1"]; call_6 -> return_7[arrowhead="none"]; switch_3 -> do_11[taillabel="4"]; switch_3 -> endsub_14[taillabel="2"]; do_11 -> endsub_14; return_7 -> endsub_14[taillabel="a"]; } }