Skip to content

Three complete graphs

September 29, 2010

three complete graphs, aligned

Also with captions.

\GraphInit[vstyle=Hasse]
\begin{tikzpicture}
  \pgfmathsetmacro{\theshift}{4/(1+sin(30))-2}
  \begin{scope}[yshift=-\theshift cm]
    \grTetrahedral[RA=4/(1+sin(30))]
  \end{scope}
  \draw (0,-2.5) node [fill=magenta!30!white,below]{$K_{4}$};
  \pgfmathsetmacro{\theshift}{4/(1+sin(54))-2}
  \begin{scope}[xshift=6cm,yshift=-\theshift cm,rotate=90]
    \grComplete[RA=4/(1+sin(54))]{5}
  \end{scope}
  \draw (6,-2.5) node [fill=magenta!30!white,below]{$K_{5}$};
  \begin{scope}[xshift=12cm]
    \grComplete[RA=2/sin(60)]{6}
  \end{scope}
  \draw (12,-2.5) node [fill=magenta!30!white,below]{$K_{6}$};
\end{tikzpicture}

2 Comments leave one →
  1. Luca permalink
    April 22, 2012 8:40 am

    which package should I include in order to let this code work?

  2. May 3, 2012 6:56 pm

    tkz-berge

Leave a comment