1
\usetikzlibrary{graphs}

\tikz \graph { a -> {b, c} -> d };

I learn Tikz through { Tikz pgf}. I write above code and compile errors occur. i mention what errors comes.

i write this code after complied errors occured

Please type another input file name: ^C! I can't find file tikzlibrarygraphs.standard.code.tex'. ...nput tikzlibrary\pgf@temp .code.tex \catcode `\@ =\csname tikz... l.16 \usetikzlibrary{graphs,graphs.standard} (Press Enter to retry, or Control-D to exit) Please type another input file name:

  • 2
    Put the \usetiklibrary{graphs} before \begin{document} and compile with LuaLaTeX – percusse Feb 5 '16 at 10:21
  • 1
    Depending which features are being used, LuaLaTeX may not be needed (though it won't hurt). – JP-Ellis Feb 5 '16 at 10:30
2

If somebody stumbles across this error - for graphdrawing you need

  • TikZ version 3.0 or newer
  • The graphdrawing library (but it should be in the TikZ bundle since 3.0)
  • LuaTeX for compiling - make sure that it's used
  • Loading tikz and graphdrawing and, if needed, related libraries, such as:

    \usepackage{tikz}
    \usetikzlibrary{graphdrawing,graphdrawing.trees,graphs}
    

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.