latex-pictures

A collection of TikZ drawings and other images 🖌️

26-nodes-diagram.tikz (695B)

 1 % This picture represents the 26-nodes diagram
 2 % Copyright Pablo (C) 2021
 3 \begin{tikzpicture}
 4     % Draw the nodes
 5     \foreach \i in {1,2,3,4,5,6,7,8,9,10,11,12,13}
 6     \foreach \offset in {0,1}
 7     \filldraw ({(360/26) * (2 * (\i - 1) + \offset}:3) circle (2pt);
 8     
 9     % Draw the ralations between nodes
10     \foreach \i in {1,2,3,4,5,6,7,8,9,10,11,12,13}
11     \draw ({(360/26) * 2 * (\i - 1)}:3) -- ({(360/26) * (2 * (\i - 1) + 1)}:3)
12           ({(360/26) * 2 * (\i - 1)}:3) -- ({(360/26) * (2 * (\i - 2) + 1)}:3)
13           ({(360/26) * 2 * (\i - 1)}:3) -- ({(360/26) * (2 * (\i - 5) + 1)}:3)
14           ({(360/26) * 2 * (\i - 1)}:3) -- ({(360/26) * (2 * (\i - 7) + 1)}:3);
15 \end{tikzpicture}