I want to draw two automaton figures next to each other; however I can't put them in one \begin{}
\end{}
tag because the node distance can be changed, further the distance between two pictures is also different. A minimal example would be greatly appreciated. Thank you.
\begin{tikzpicture}[shorten >=1pt,node distance=2cm,on grid,auto]
\node[state,initial] (q_0) {$q_0$};
\node[state,accepting] (q_1) [right=of q_0] {$q_1$};
\node[state] (q_2) [right=of q_1] {$q_2$};
\path[->]
(q_0) edge node {a} (q_1)
(q_1) edge node {$\lambda$} (q_2)
(q_2) edge [bend right] node {$\lambda$} (q_0)
; %end path
\end{tikzpicture}