topology-graph-k-5.tex 592 B

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