[Tex/LaTex] Draw a quiver diagram with TikZ

tikz-pgf

I would like to know how to draw a quiver diagram like this one. I know there exists TikZ or something like that, but I don't know the commands or packages necessary to draw it.

QUIVER DIAGRAM

Best Answer

As you want the arrows close to the nodes I think that you need to use a decoration. Here is one way to do it:

enter image description here

and here is the code:

\documentclass[border=5mm,tikz]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows,decorations.markings}

\begin{document}

\tikzset{% arrow close to the source: the 0.2 determines where the arrow is drawn
  ->-/.style={decoration={markings, mark=at position 0.2 with {\arrow{stealth}}},
              postaction={decorate}},
}

\begin{tikzpicture}[every node/.style={circle,draw},thick]
  \node(NL) at (0,0){$N$};
  \node(NR) at (2,0){$N$};
  \draw[->-](NL.north east)--(NR.north west);
  \draw[->-](NR.south west)--(NL.south east);
\end{tikzpicture}

\end{document}