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}

Advertisements
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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: