Bus errorとSegmentation faultに困ったら見るブログ

物理の研究者による日々の研究生活のメモ書きです ( python/emacs/html/Japascript/シェルスクリプト/TeX/Mac/C言語/Linux/git/tmux/R/ポケモンGO)

【dot言語】フローチャートを1つ書いてみた

ここのフローチャートが割と参考になった

■ 参考 : フロー図を描いてみる


一応フローチャートを作るときの記号などは基本的なものに従ったつもりだけど、ちょっと違うかも・・・


flowchart_blog

digraph flowchart {
node [shape="box", fontname="MS Gothic"];
edge [fontname="MS Gothic"];
start [label="start", shape="ellipse", style="filled", fillcolor="#CCCCCC", width=0.1, height=0.1];
end [label="end", shape="ellipse", style="filled", fillcolor="#CCCCCC", width=0.1, height=0.1];

node5 -> node6;
node6 -> node3[label="a0, a3"];

start -> node1;
node1 -> node2[label="a"];
node2 -> node3[label="b"];

node1 -> node4[label="c"];
node4 -> node3[label="d"];

node3 -> node7[label="e"];
node7 -> node8[label="f"];
node8 -> node9;
node9 -> end[label="a, b, c, d, e"];
node8 -> node1[tailport=e, headport=e];

node1 [label="hoge", shape="parallelogram", fixedsize="true", width=4.0, height=0.5];
node2 [label="foo"];
node3 [label="aho", shape="doubleoctagon"];
node4 [label="ver"];
node5 [label="aha\nha"];
node6 [label="hoge2"];
node7 [label="hoge3"];
node8 [label="本当に?", shape="diamond"];
node9 [label="OK!!!!"];
}