digraph cn2p1b {
	rankdir="LR";
	node [texmode="math",shape="circle",style="state"];
	q0 [style="state,initial,final,accepting below",label="0"];
	q2 [style="state,final,accepting below",label="2"];
	q6 [style="state,final,accepting below",label="6"];
	q9 [style="state,final",label="9"];
	edge [texmode="math",lblstyle="auto"];
	q0 -> q2 [label="a"];
	q2 -> q6 [label="b"];
	q2 -> q2 [label="a",topath="loop above"];
	q0 -> q6 [label="b"];
	q6 -> q9 [label="a"];
	q6 -> q6 [label="b",topath="loop above"];
	q9 -> q6 [label="b"];
	q9 -> q9 [label="a",topath="loop above"];
}