I'm trying to create two transitions between states while using the TiKZ library for automata drawing.
Currently, I have this example code :
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{arrows,automata}
\begin{document}
\begin{tikzpicture}[>=stealth',shorten >=1pt,auto,node distance=4cm]
\node[state] (A) {A};
\node[state] (B) [right of = A] {B};
\path[->] (A) edge [bend left] node {x = 0} (B)
(B) edge [bend right] node {x = 1} (A);
\end{tikzpicture}
\end{document}
Which yields the following result :
I'd like to have two arrows between the states instead : one with x = 0
, and the second one with x = 1
.
How can I do that with TiKZ?