summaryrefslogtreecommitdiff
path: root/obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex
diff options
context:
space:
mode:
Diffstat (limited to 'obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex')
-rw-r--r--obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/Grid.tex21
-rw-r--r--obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/gr-Circulant.tex51
-rw-r--r--obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/gr-Complet-16.tex28
-rw-r--r--obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/gr-edgeingraphmodloop.tex26
-rw-r--r--obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/grCLadder.tex39
-rw-r--r--obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/grDoubleMod.tex23
-rw-r--r--obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/grExtraChords.tex64
-rw-r--r--obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/grLadder.tex27
-rw-r--r--obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/grSQCycle.tex34
-rw-r--r--obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/grStar.tex37
-rw-r--r--obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/grWheel.tex28
-rw-r--r--obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/hypercube_simple.tex32
-rw-r--r--obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/hypercubed.tex38
13 files changed, 448 insertions, 0 deletions
diff --git a/obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/Grid.tex b/obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/Grid.tex
new file mode 100644
index 0000000000..839e4a6aa0
--- /dev/null
+++ b/obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/Grid.tex
@@ -0,0 +1,21 @@
+% 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}
+%\usetikzlibrary{calc}
+\begin{document}
+ \GraphInit[vstyle=Shade]
+ \SetGraphShadeColor{blue!60!black!30}{blue}{white}
+\begin{center}
+ \begin{tikzpicture}
+ \grGrid[Math,RA=2,RB=2]{3}{5}
+ \end{tikzpicture}
+\end{center}
+
+\end{document} \ No newline at end of file
diff --git a/obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/gr-Circulant.tex b/obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/gr-Circulant.tex
new file mode 100644
index 0000000000..678de92cea
--- /dev/null
+++ b/obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/gr-Circulant.tex
@@ -0,0 +1,51 @@
+% 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}
+
+
+\begin{tikzpicture}
+ \GraphInit[vstyle=Art]
+ \grCirculant[RA=3.5]{4}{1}
+\end{tikzpicture}
+\begin{tikzpicture}
+ \GraphInit[vstyle=Art]
+ \grCirculant[RA=3.5]{6}{1,3}
+\end{tikzpicture}
+
+\begin{tikzpicture}
+ \GraphInit[vstyle=Art]
+ \grCirculant[RA=3.5]{8}{1,3}
+\end{tikzpicture}
+\begin{tikzpicture}
+ \GraphInit[vstyle=Art]
+ \grCirculant[RA=3.5]{10}{1,3,5}
+\end{tikzpicture}
+
+\begin{tikzpicture}
+ \GraphInit[vstyle=Art]
+ \grCirculant[RA=3.5]{12}{1,3,5}
+\end{tikzpicture}
+\begin{tikzpicture}
+ \GraphInit[vstyle=Art]
+\grCirculant[RA=3.5]{14}{1,3,5,7}
+\end{tikzpicture}
+
+\begin{tikzpicture}
+ \GraphInit[vstyle=Art]
+\grCirculant[RA=3.5]{16}{1,3,5,7}
+\end{tikzpicture}
+\begin{tikzpicture}
+ \GraphInit[vstyle=Art]
+\grCirculant[RA=3.5]{21}{1}
+\end{tikzpicture}
+%
+\end{document} \ No newline at end of file
diff --git a/obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/gr-Complet-16.tex b/obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/gr-Complet-16.tex
new file mode 100644
index 0000000000..e7563b31a5
--- /dev/null
+++ b/obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/gr-Complet-16.tex
@@ -0,0 +1,28 @@
+% 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}
+
+\begin{center}
+\begin{tikzpicture}
+ \SetVertexNoLabel
+ \tikzstyle{VertexStyle}=[shape = circle,
+ shading = ball,
+ ball color = green!40!black,%
+ minimum size = 20pt,%
+ draw]
+ \tikzstyle{EdgeStyle} =[thick,%
+ double= orange,%
+ double distance = 1pt]
+ \grCirculant[RA=6]{16}{2,3,4,5,6,7,8}
+\end{tikzpicture}
+\end{center}
+\end{document} \ No newline at end of file
diff --git a/obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/gr-edgeingraphmodloop.tex b/obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/gr-edgeingraphmodloop.tex
new file mode 100644
index 0000000000..86df830342
--- /dev/null
+++ b/obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/gr-edgeingraphmodloop.tex
@@ -0,0 +1,26 @@
+% 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}
+ \begin{tikzpicture}
+ \grEmptyCycle[RA=4]{7}
+ \EdgeInGraphModLoop{a}{7}{2}{1}
+ \end{tikzpicture}
+
+ \begin{tikzpicture}
+ \grEmptyCycle[RA=4]{8}
+ \EdgeInGraphModLoop{a}{8}{2}{1}
+ \end{tikzpicture}
+
+ \begin{tikzpicture}
+ \grEmptyCycle[RA=4]{8}
+ \EdgeInGraphModLoop{a}{8}{3}{1}
+ \end{tikzpicture}
+\end{document}
diff --git a/obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/grCLadder.tex b/obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/grCLadder.tex
new file mode 100644
index 0000000000..626f3e7cec
--- /dev/null
+++ b/obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/grCLadder.tex
@@ -0,0 +1,39 @@
+% 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{EdgeStyle}= [thick,%
+ double = orange,%
+ double distance = 1pt]
+\begin{center}
+
+ \tikzstyle{VertexStyle}=[shape = circle,
+ shading = ball,
+ ball color = green!30,
+ minimum size = 24pt,
+ draw]
+ \SetVertexLabel
+ \tikzstyle{EdgeStyle}= [color=red!30,
+ double= green!50!black,
+ double distance = 2pt]
+\begin{tikzpicture}
+\grPrism[RA=5,RB=3]{6}%
+\end{tikzpicture}
+
+\begin{tikzpicture}
+\grPrism[RA=5,RB=3]{4}%
+\end{tikzpicture}
+
+
+\end{center}
+
+\end{document} \ No newline at end of file
diff --git a/obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/grDoubleMod.tex b/obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/grDoubleMod.tex
new file mode 100644
index 0000000000..42c2fccbd4
--- /dev/null
+++ b/obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/grDoubleMod.tex
@@ -0,0 +1,23 @@
+% 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}
+%\usetikzlibrary{calc}
+\begin{document}
+ \GraphInit[vstyle=Shade]
+ \SetGraphShadeColor{blue!60!black!30}{blue}{white}
+\begin{center}
+ \begin{tikzpicture}
+ \grCycle[RA=7]{27}
+ \EdgeDoubleMod{a}{27}{0}{3}
+ {a}{27}{13}{3}{9}
+ \end{tikzpicture}
+\end{center}
+
+\end{document}
diff --git a/obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/grExtraChords.tex b/obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/grExtraChords.tex
new file mode 100644
index 0000000000..c3ce1095fe
--- /dev/null
+++ b/obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/grExtraChords.tex
@@ -0,0 +1,64 @@
+% 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{VertexStyle}=[shape = circle,%
+ fill = red!50,
+ very thin,
+ inner sep = 0pt,%
+ minimum size = 16pt,
+ draw]
+\tikzstyle{EdgeStyle}= [thick,%
+ double= lightgray,%
+ double distance = 1pt]
+
+ \SetVertexLabel
+\begin{tikzpicture}
+ \grEmptyCycle[RA=4]{30}
+ \EdgeInGraphMod*{a}{30}{9}{1}{6}
+\end{tikzpicture}
+
+\begin{tikzpicture}
+ \grEmptyCycle[RA=4]{30}
+ \EdgeInGraphMod{a}{30}{9}
+\end{tikzpicture}
+
+\begin{tikzpicture}
+ \grEmptyCycle[RA=5]{30}
+ \EdgeInGraphMod*{a}{30}{9}{1}{6}
+\end{tikzpicture}
+
+\begin{center}
+ \begin{tikzpicture}[rotate=90]
+ \grLCF[RA=6]{6,12}{15}
+ \end{tikzpicture}
+\end{center}
+
+
+\begin{center}
+ \begin{tikzpicture}[rotate=90]
+ \grLCF[RA=6]{6,12}{15}
+ \SetUpEdge[color=red]
+ \EdgeInGraphMod*{a}{30}{9}{1}{6}
+ \end{tikzpicture}
+\end{center}
+
+\begin{center}
+ \begin{tikzpicture}[rotate=90]
+ \grLCF[RA=6]{6,12}{15}
+ \EdgeInGraphMod*{a}{30}{9}{1}{6}
+ \EdgeInGraphMod*{a}{30}{15}{2}{6}
+ \EdgeInGraphMod*{a}{30}{9}{3}{6}
+ \end{tikzpicture}
+\end{center}
+
+\end{document}
diff --git a/obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/grLadder.tex b/obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/grLadder.tex
new file mode 100644
index 0000000000..d2ab402846
--- /dev/null
+++ b/obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/grLadder.tex
@@ -0,0 +1,27 @@
+% 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}
+%\usetikzlibrary{calc}
+\begin{document}
+ \GraphInit[vstyle=Shade]
+ \SetGraphShadeColor{green!30}{green!50!black}{red!30}
+\begin{center}
+\begin{tikzpicture}
+\grLadder[RA=2,RS=3]{6}%
+\end{tikzpicture}
+\end{center}
+
+\begin{center}
+\begin{tikzpicture}
+\grLadder[RA=3,RS=4]{4}%
+\end{tikzpicture}
+\end{center}
+
+\end{document} \ No newline at end of file
diff --git a/obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/grSQCycle.tex b/obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/grSQCycle.tex
new file mode 100644
index 0000000000..fade3b4f64
--- /dev/null
+++ b/obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/grSQCycle.tex
@@ -0,0 +1,34 @@
+% 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}
+%\usetikzlibrary{calc}
+\thispagestyle{empty}
+\begin{document}
+ \GraphInit[vstyle=Shade]
+ \SetGraphShadeColor{black!50}{darkgray}{white}
+ \SetVertexMath
+\begin{center}
+ \begin{tikzpicture}
+ \grSQCycle[RA=5]{8}%
+ \end{tikzpicture}
+\end{center}
+
+\begin{center}
+ \begin{tikzpicture}
+ \grSQCycle[RA=5]{6}%
+ \end{tikzpicture}
+\end{center}
+
+\begin{center}
+ \begin{tikzpicture}
+ \grSQCycle[RA=5]{9}%
+ \end{tikzpicture}
+\end{center}
+\end{document}
diff --git a/obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/grStar.tex b/obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/grStar.tex
new file mode 100644
index 0000000000..4a0d75d919
--- /dev/null
+++ b/obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/grStar.tex
@@ -0,0 +1,37 @@
+% 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}
+ \GraphInit[vstyle=Shade]
+ \SetGraphShadeColor{orange!60}{red}{white}
+ \SetVertexMath
+\begin{center}
+ \begin{tikzpicture}
+ \grEmptyStar[RA=3]{6}
+ \end{tikzpicture}
+\end{center}
+
+
+\begin{center}
+ \begin{tikzpicture}
+ \grStar[RA=3]{7}
+ \end{tikzpicture}
+\end{center}
+
+
+\begin{center}
+ \begin{tikzpicture}
+ \grStar[RA=4]{10}
+ \end{tikzpicture}
+\end{center}
+
+
+\end{document}
diff --git a/obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/grWheel.tex b/obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/grWheel.tex
new file mode 100644
index 0000000000..28f563de4c
--- /dev/null
+++ b/obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/grWheel.tex
@@ -0,0 +1,28 @@
+% 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}
+ \GraphInit[vstyle=Shade]
+ \SetGraphShadeColor{orange!60!black!30}{Brown}{white}
+\begin{center}
+ \begin{tikzpicture}
+ \grWheel[RA=3]{5}
+ \end{tikzpicture}
+\end{center}
+
+
+\begin{center}
+ \begin{tikzpicture}
+ \grWheel[RA=4]{10}
+ \end{tikzpicture}
+\end{center}
+
+
+\end{document}
diff --git a/obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/hypercube_simple.tex b/obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/hypercube_simple.tex
new file mode 100644
index 0000000000..8ae56a4875
--- /dev/null
+++ b/obsolete/macros/latex/contrib/tkz/tkz-berge/examples/latex/hypercube_simple.tex
@@ -0,0 +1,32 @@
+% 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}
+\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
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