Here is an example of what I want to do:
\documentclass{minimal}
\usepackage{tikz,amssymb}
\usetikzlibrary{graphs}
\begin{document}
\begin{tikzpicture}
\begin{graph}[multi]{
1 -> 2;
% this does not work:
% $\mathbb{Q}$ -> $\mathbb{R}$;
};
\end{graph}
\end{tikzpicture}
\end{document}
With regular tikz nodes it is straightforward, just stick it in the curly braces at the end of the node definition. But I don't understand how to map this to the graphs library. It appears only simple node names can be used.

\includegraphics. – timothymctim Dec 24 '16 at 13:53