Mercurial > hg > Members > shinya > pyrect
view code/graph/reg.dot @ 6:168d60b03e2c
add dotTranslator(Translator), that can translate from DFA or NFA into Dot-file(Dot is graph generater using tex.)
author | ryoma <shinya@firefly.cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 02 Jul 2010 02:43:28 +0900 |
parents | 7e47839a54ad |
children | 2d00b46ce34d |
line wrap: on
line source
digraph G { d2ttikzedgelabels = true; d2tstyleonly = true; d2tdocpreamble = "\usetikzlibrary{automata}"; d2tfigpreamble = " ikzstyle{every state}= [draw=blue!50, shape=circle, very thick,fill=blue!20]"; edge [lblstyle="fill=blue!20", style="arrows=->", topath="bend left"]; node [shape="circle", style="state"]; state13567 [style="state, initial"] state8 [style="state, accepting"] state13567 -> state12357 [texlbl="A"]; state13567 -> state8 [texlbl="C"]; state13567 -> state13457 [texlbl="B"]; state13457 -> state12357 [texlbl="A"]; state13457 -> state8 [texlbl="C"]; state13457 -> state13457 [texlbl="B"]; state12357 -> state12357 [texlbl="A"]; state12357 -> state8 [texlbl="C"]; state12357 -> state13457 [texlbl="B"]; }