I would like to use tikz graph to draw graphs of function calling relations. But I have trouble with function names from C programming language, where underscore is allowed in a function name.
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{graphs}
\usepackage{shortvrb}
\MakeShortVerb{\|}
\begin{document}
|func_one()| calls |func_two()|:
\tikz \graph {
"|func_one()|" -> "|func_two()|";
};
\end{document}
For the above example, TeX complains
Missing $ inserted. }
Is there a simple way to let C function name be the name of a tikz graph node without much handling with the function name? In my case, there will be many functions in a calling graph and each name may include multiple underscores. Sigh.
Thanks in advance.

\_– CarLaTeX Jan 05 '18 at 06:58