latex-pictures

A collection of TikZ drawings and other images 🖌️

k4.tikz (487B)

 1 % This picture represents the complete graph of four vertices
 2 % Copyright Pablo (C) 2021
 3 \begin{tikzpicture}[scale=0.75]
 4   % The vertices
 5   \coordinate (a) at (0,0);
 6   \coordinate (b) at (4,0);
 7   \coordinate (c) at (2,1);
 8   \coordinate (d) at (2,3);
 9   \foreach \node in {a,b,c,d}
10   \filldraw (\node) circle (2pt);
11 
12   % The edges
13   \draw (a) -- (b) 
14             -- (c) 
15             -- (a) 
16             -- (d) 
17             -- (b) 
18             -- (c) 
19             -- (d);
20 \end{tikzpicture}