I would like to draw some more or less advanced grid, using three consecutive (non-nested) foreach loops. For unknown reasons, the third loop seems to be ignored... Here is the code:
\begin{tikzpicture}
\node at (22,3) (F) {$F$};
\foreach \i in {0,...,10}
{
\pgfmathtruncatemacro{\label}{\i}
\node at (20-2*\i,4) (A\label) {$v_{\label}$};
}
\foreach \i in {0,...,9}
{
\pgfmathtruncatemacro{\label}{\i}
\pgfmathtruncatemacro{\labelp}{\i + 1}
\node at (19-2*\i,2) (E\i) {$u_{\label}$}
(A\labelp) edge (E\label)
(E\label) edge (A\label)
(A\labelp) edge (A\label);
}
\foreach \i in {0,...,8}
{
\pgfmathtruncatemacro{\label}{\i}
\pgfmathtruncatemacro{\labelpp}{\i + 2}
(E\label) edge[bend left = 50] (E\labelpp);
}
\end{tikzpicture}
Thank you very much for your help!
\draw
before(E\label...
. (and lower the upper bound to 7)