topology-graph-k-5.tex 697 B

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