I tried to insert a multipart node into a graph and failed in an endless loop. I know that this can happen, since TeX is a turing complete language. But I wonder why it happens whenever I place a \node inside a \graph.
Here is the minimal failing example:
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{graphs}
\begin{document}
\begin{tikzpicture}
\graph {
\node
(n)
{ Foo
%should be a multipart node, but fails just as a plain node
};
}
\end{tikzpicture}
\end{document}
As far as I know, \graph is just a shortcut for some more basic tikz element. But why is it problematic to add a node? What is the fundamental problem here?
I am running lualatex 0.95.0 but the loop occurs as well with pdflatex and xelatex.