digraph example6b { rankdir="LR"; node [texmode="math",shape="circle",style="state"]; q0 [style="state,initial,final,accepting below",label="0"]; q1 [style="state",label="1"]; edge [texmode="math",lblstyle="auto"]; q0 -> q0 [label="0",topath="loop above"]; q0 -> q1 [label="1"]; q1 -> q0 [label="1"]; q1 -> q1 [label="1",topath="loop right",texlbl="$01{*}0$"]; }