Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132940 views
License: OTHER
1
% A complete graph
2
% Author: Quintin Jean-Noël
3
% <http://moais.imag.fr/membres/jean-noel.quintin/>
4
\documentclass[varwidth=true, border=2pt]{standalone}
5
\usepackage[nomessages]{fp}% http://ctan.org/pkg/fp
6
\usepackage{tikz}
7
\usetikzlibrary[topaths]
8
9
10
\begin{document}
11
\newcommand\n{5}
12
\begin{tikzpicture}
13
\node[vertex] (a) at (3,6) {};
14
\node[vertex] (b) at (2,4) {};
15
\node[vertex] (c) at (4,4) {};
16
\node[vertex] (d) at (1,2) {};
17
\node[vertex] (e) at (2,2) {};
18
\node[vertex] (f) at (3,2) {};
19
\node[vertex] (g) at (4,2) {};
20
\node[vertex] (h) at (0,0) {};
21
\node[vertex] (i) at (2,0) {};
22
\node[vertex] (j) at (3,0) {};
23
\node[vertex] (k) at (5,0) {};
24
25
\draw[red] (a) -- (b);
26
\draw[red] (a) -- (c);
27
\draw[red] (b) -- (d);
28
\draw[red] (b) -- (e);
29
\draw[red] (b) -- (f);
30
\draw[red] (d) -- (h);
31
\draw[red] (d) -- (i);
32
\draw[red] (c) -- (g);
33
\draw (g) -- (j);
34
\draw (g) -- (k);
35
\end{tikzpicture}
36
\end{document}
37
38