I'm new here and I don't know, if I'm in the right section. In that case: I'm sorry and I need advice.
Ok, now my problem:
I want to try to make some graphs in
\latex
. Especially a directed graph. I've found a example, which I thought to use and adabt to my problem. I've tried so much and done a lot of research, but I've found nothing, which is realy helpfully.The Example I used is the followed
Code: Select all
% Drawing a graph using the PG 3.0 graphdrawing library
% Author: Mark Wibrow
\documentclass[tikz,border=10pt]{standalone}
\usetikzlibrary{graphdrawing}
\usetikzlibrary{graphs}
\usegdlibrary{trees}
\begin{document}
\begin{tikzpicture}[>=stealth, every node/.style={circle, draw, minimum size=0.75cm}]
\graph [tree layout, grow=down, fresh nodes, level distance=0.5in, sibling distance=0.5in]
{
4 -> {
3 -> { 1 -> { 5}, 2,2 },
3 -> { 1, 2, 2 },
3 -> { 1, 2, 2 }
}
};
\end{tikzpicture}
\end{document}
The error:
Code: Select all
Package pgf Error: You need to run LuaTeX to use the graph drawing library.
[...n LuaTeX to use the graph drawing library}]
Need Help, please?
I use MikTex and Win 8.1.
If you have some other solutions which work better, I'm welcome every idea.
Thank you very much for your help.