Mercurial > hg > Members > shinya > pyrect
diff code/graph/sample.dot @ 3:a193b4ff3909
prepare graph outputs (but not implement)
author | ryoma <e075725@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 29 Jun 2010 11:44:40 +0900 |
parents | |
children | 2d00b46ce34d |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/code/graph/sample.dot Tue Jun 29 11:44:40 2010 +0900 @@ -0,0 +1,23 @@ +digraph G { + d2ttikzedgelabels = true; + d2tstyleonly = true; + d2tdocpreamble = "\usetikzlibrary{automata}"; + d2tfigpreamble = "\tikzstyle{every state}=\ + [draw=blue!50,shape=circle, very thick,fill=blue!20]"; + edge [lblstyle="fill=blue!20", style="arrows=->", topath="bend left"]; + node [style="state"]; + + a_1 [style="state, initial"] + a_1 -> a_2 [texlbl="1"] + a_1 -> a_3 [texlbl="2"]; + a_1 -> a_4 [texlbl="3"]; + + a_2 -> a_1 [texlbl="4"]; + a_2 -> a_3 [texlbl="5"]; + + a_3 -> a_1 [texlbl="7"]; + a_3 -> a_2 [texlbl="8"]; + + a_4 -> a_1 [texlbl="10",shape="circle"]; + a_4 [style="state, accepting"]; +}