mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-26 06:48:04 +02:00
20 lines
515 B
TeX
20 lines
515 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}
|
||
|
\newcommand\n{5}
|
||
|
\begin{tikzpicture}
|
||
|
\node[vertex] (N1) at (0,0) {};
|
||
|
\node[vertex] (N2) at (2,0) {};
|
||
|
\node[vertex] (N3) at (1,1) {};
|
||
|
|
||
|
\draw (N1) -- (N3) -- (N2) -- (N1);
|
||
|
\end{tikzpicture}
|
||
|
\end{document}
|