digraph ex3p1b {
	rankdir="LR";
	node [texmode="math",shape="circle",style="state"];
	q0 [style="state,initial,final,accepting below",label="0"];
	q2 [style="state,final",label="2"];
	q6 [style="state",label="6"];
	q8 [style="state,final,accepting above",label="8"];
	q11 [style="state,final,accepting below",label="11"];
	edge [texmode="math",lblstyle="auto"];
	q0 -> q2 [label="a"];
	q2 -> q2 [label="a",topath="loop above"];
	q2 -> q6 [label="b"];
	q0 -> q6 [label="b",lblstyle="auto,below"];
	q6 -> q8 [label="a"];
	q8 -> q11 [label="a"];
	q11 -> q11 [label="a",topath="loop above"];
	q8 -> q6 [label="b",lblstyle="auto,near start"];
	q11 -> q6 [label="b",lblstyle="auto,near start"];
}