diff options
Diffstat (limited to 'obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/hypercubed.tex')
-rw-r--r-- | obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/hypercubed.tex | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/hypercubed.tex b/obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/hypercubed.tex new file mode 100644 index 0000000000..f5c33f4693 --- /dev/null +++ b/obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/hypercubed.tex @@ -0,0 +1,38 @@ +% Author : Alain Matthes +% Encoding : UTF8 +% Engine : PDFLaTeX +\documentclass[]{article} +\usepackage[utf8]{inputenc} +\usepackage[usenames,dvipsnames]{xcolor} +\usepackage{fullpage} +\usepackage[upright]{fourier} +\usepackage{tkz-berge} +\thispagestyle{empty} +\begin{document} +\tikzstyle{SimpleVertexStyle} = [shape = circle,% + fill = red,% + inner sep = 3pt,% + outer sep = 0pt,% + draw] +\SetVertexSimple +\SetVertexNoLabel + +\begin{center} + \begin{tikzpicture} + \grCycle[RA=8]{8} + \pgfmathparse{8*(1-4*sin(22.5)*sin(22.5))} + \let\tkzbradius\pgfmathresult + \grCirculant[prefix=b,RA=\tkzbradius]{8}{3} + \makeatletter + \foreach \vx in {0,...,7}{% + \pgfmathsetcounter{tkz@gr@n}{mod(\vx+1,8)} + \pgfmathsetcounter{tkz@gr@a}{mod(\vx+7,8)} + \pgfmathsetcounter{tkz@gr@b}{mod(\thetkz@gr@n+1,8)} + \Edge(a\thetkz@gr@n)(b\thetkz@gr@b) + \Edge(b\thetkz@gr@a)(a\vx) + }\makeatother + \end{tikzpicture} + +\end{center} + +\end{document}
\ No newline at end of file |