From 36ba46eccdbe995358d11a0febaed52e6c035b17 Mon Sep 17 00:00:00 2001 From: "David A. Madore" Date: Wed, 23 Nov 2016 19:05:04 +0100 Subject: NFAs with spontaneous transitions. --- figs/example4det.dot | 8 ++++---- figs/example5.dot | 13 +++++++++++++ 2 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 figs/example5.dot (limited to 'figs') diff --git a/figs/example4det.dot b/figs/example4det.dot index 2d88a37..7121690 100644 --- a/figs/example4det.dot +++ b/figs/example4det.dot @@ -1,10 +1,10 @@ digraph example4det { rankdir="LR"; node [texmode="math",shape="circle",style="state"]; - q0 [style="state,initial",label="\{0\}"]; - q01 [style="state",label="\{0,1\}"]; - q02 [style="state,final",label="\{0,2\}"]; - q012 [style="state,final",label="\{0,1,2\}"]; + q0 [style="state,initial",label="0",texlbl="$\{0\}$"]; + q01 [style="state",label="01",texlbl="$\{0,1\}$"]; + q02 [style="state,final",label="02",texlbl="$\{0,2\}$"]; + q012 [style="state,final",label="012",texlbl="$\{0,1,2\}$"]; edge [texmode="math",lblstyle="auto"]; q0 -> q0 [label="b",topath="loop above"]; q0 -> q01 [label="a"]; diff --git a/figs/example5.dot b/figs/example5.dot new file mode 100644 index 0000000..7c5e403 --- /dev/null +++ b/figs/example5.dot @@ -0,0 +1,13 @@ +digraph example5 { + rankdir="LR"; + node [texmode="math",shape="circle",style="state"]; + q0 [style="state,initial",label="0"]; + q1 [style="state",label="1"]; + q2 [style="state,final",label="2"]; + edge [texmode="math",lblstyle="auto"]; + q0 -> q0 [label="a",topath="loop above"]; + q0 -> q1 [label="e",texlbl="$\varepsilon$"]; + q1 -> q1 [label="b",topath="loop above"]; + q1 -> q2 [label="e",texlbl="$\varepsilon$"]; + q2 -> q2 [label="c",topath="loop above"]; +} -- cgit v1.2.3