Why doesn't this code compile?
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\GraphInit[vstyle=Classic]
\SetGraphUnit{2}
\Vertices{circle}{A,B,C,D}
\Edges(A,B,C,D,A,C)
\SetVertexNoLabel
\AddVertexColor{red}{B,D}
\AddVertexColor{green}{A}
\AddVertexColor{blue}{C}
\end{tikzpicture}
\end{document}
tikz
is not enough. You need some of thetkz
packages that build upontikz
– daleif Jul 21 '14 at 15:04\GraphInit
,\SetGraphUnit
,\Vertices
and so on are not provided by\usepackage{tikz}
, but by another package based on TikZ. Possibly\usepackage{tkz-graph}
. – egreg Jul 21 '14 at 15:05