2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-26 06:48:04 +02:00
LaTeX-examples/documents/GeoTopo/figures/topology-graph-k-5.tex
2013-11-28 17:28:06 +01:00

17 lines
592 B
TeX

\newcommand\n{5}
\begin{tikzpicture}
\tikzstyle{point}=[circle,thick,draw=black,fill=black,inner sep=0pt,minimum width=4pt,minimum height=4pt]
\begin{scope}[rotate=17]
%the multiplication with floats is not possible. Thus I split the loop in two.
\foreach \number in {1,...,\n}{
\node[point] (N-\number) at ({\number*(360/\n)}:1.5cm) {};
}
\foreach \number in {1,...,\n}{
\foreach \y in {1,...,\n}{
\draw (N-\number) -- (N-\y);
}
}
\end{scope}
\end{tikzpicture}