I am using tikz to draw graphs like this :
The result is fine if I use only one(!) of them :
\begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=3cm,thick,main node/.style={circle,fill=white!20,draw,font=\sffamily\Large\bfseries}]
\node[main node] (1) {v1};
\node[main node] (2) [below left of=1] {v2};
\node[main node] (3) [below right of=2] {v3};
\node[main node] (4) [below right of=1] {v4};
\path[every node/.style={font=\sffamily\small}]
(1) edge node [left] {} (2)
(2) edge node [right] {} (3)
(3) edge node [right] {} (4)
(4) edge node [left] {}(1);
\end{tikzpicture}
Result:

And the other one:
\begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=3cm,thick,main node/.style={circle,fill=white!20,draw,font=\sffamily\Large\bfseries}]
\node[main node] (1) {v1};
\node[main node] (2) [right of=1] {v2};
\node[main node] (3) [right of=2] {v3};
\path[every node/.style={font=\sffamily\small}]
(1) edge node [left] {} (2)
(2) edge node [right] {} (3);
\end{tikzpicture}
result:

But if the code above is used together in the same code I get this weird result :

So the drawing are mixed into each other. How can I separate the drawing?
Thanks!!!
