
Aquí hay un ejemplo mínimo que no funciona.
\documentclass{minimal}
\usepackage{tikz}
\usetikzlibrary{graphs}
\begin{document}
\begin{tikzpicture}
\begin{graph}{
1 -> 2;
3 -> 3;
};
\end{graph}
\end{tikzpicture}
\end{document}
Estoy intentando que 3 haga un bucle sobre sí mismo.
Respuesta1
Solo di tikz
que quieres un bucle:
\documentclass{minimal}
\usepackage{tikz}
\usetikzlibrary{graphs}
\begin{document}
\begin{tikzpicture}
\graph{
1 -> 2;
3 ->[loop below] 3;
};
\end{tikzpicture}
\end{document}
Esto produce:
Si solo escribe 3 -> [loop] 3;
, el bucle pasa por el nodo 1.