mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-26 06:48:04 +02:00
26 lines
896 B
TeX
26 lines
896 B
TeX
|
% A complete graph
|
||
|
% Author: Quintin Jean-Noël
|
||
|
% <http://moais.imag.fr/membres/jean-noel.quintin/>
|
||
|
\documentclass[varwidth=true, border=2pt]{standalone}
|
||
|
\usepackage[nomessages]{fp}% http://ctan.org/pkg/fp
|
||
|
\usepackage{tikz}
|
||
|
\usetikzlibrary[topaths]
|
||
|
|
||
|
|
||
|
\begin{document}
|
||
|
\begin{tikzpicture}
|
||
|
\node[vertex] (N1) at (0,0) {};
|
||
|
\node[vertex] (N2) at (2,0) {};
|
||
|
\node[vertex] (N3) at (4,0) {};
|
||
|
\node[vertex] (N4) at (6,0) {};
|
||
|
\node[vertex] (N5) at (1,1) {};
|
||
|
\node[vertex] (N6) at (3,1) {};
|
||
|
\node[vertex] (N7) at (5,1) {};
|
||
|
\node[vertex] (N8) at (2,2) {};
|
||
|
\node[vertex] (N9) at (4,2) {};
|
||
|
\node[vertex] (N10) at (3,3) {};
|
||
|
|
||
|
\draw (N1) -- (N5) -- (N2) -- (N6) -- (N3) -- (N7) -- (N6) -- (N5) -- (N8) -- (N6) -- (N9) -- (N8) -- (N10) -- (N9) -- (N7) -- (N4) -- (N3) -- (N2) -- (N1);
|
||
|
\end{tikzpicture}
|
||
|
\end{document}
|