I've got the following code:
\begin{tikzpicture}[node distance=2cm, auto]
\node (0) {\Large$0$};
\node (1) [right of=0] {\Large$1$};
\node (2) [right of=1] {\Large$2$};
\node (3) [right of=2] {\Large$3$};
\node (4) [right of=3] {\Large$\cdots$};
\draw[->] (1.160) to node {\small$(0,1)$} (0.20);
\draw[->] (1.200) to node [swap] {\small$(1,0)$} (0.340);
\draw[->] (2.160) to node {\small$(0,1)$} (1.20);
\draw[->] (2.200) to node [swap] {\small$(1,0)$} (1.340);
\draw[->] (3.160) to node {\small$(0,1)$} (2.20);
\draw[->] (3.200) to node [swap] {\small$(1,0)$} (2.340);
\draw[->] (4.169) to node {\small$(0,1)$} (3.20);
\draw[->] (4.191) to node [swap] {\small$(1,0)$} (3.340);
\end{tikzpicture}
This gives me the following picture:
It was basically working fine, but I decided to switch the directions of all the arrows, it previously gave me this:
which is basically what I want.
So my question is how do I adjust the label positions of my edges?
\draw (0,0) -- (6,0) node[midway,fill=white] {Test};
? I don't fully understand the question … – current_user Aug 2 '18 at 20:56[swap]
s. – user121799 Aug 2 '18 at 21:04