I'm trying to draw a graph which node text should be in a math environment. For instance consider the following :
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{graphs}
\begin{document}
\begin{tikzpicture}
\graph{
A0 -> A1;
};
\end{tikzpicture}
\end{document}
I'd the text of A0
and A1
to be \(A^0\)
and \(A^1\)
(or using $...$
even if it is a bad practise, at this point I don't really care).
Outside graphs, I have no problem to have such nodes, and I read from tikz doc that graph vertices are just regular nodes, but yet, I don't know how to do what I want.
If that is relevant, I'm using lualatex, because I need the \usegdlibrary
for the rest of the graph.