I use tikz, and try draw a directed graph with
\begin{tikzpicture}
\node[draw, circle] (1) {1};
\node[draw, circle] (2) [ right of=1] {2};
\path (1) edge (2);
\end{tikzpicture}
and get

how I can get this ? (with arrow)

Edit
I try with
\path[->] (1) edge (2);
but I get
! Argument of \language@active@arg> has an extra }.
<inserted text>
\par
l.403 \path[->] (
1) edge (2);


[->]after\path. See the manual for various arrow style options. – percusse Mar 21 '12 at 00:32\path[->] (1) edge (2);works fine for me... – cmhughes Mar 21 '12 at 00:47