SHARE
TWEET

Paley graph of order 17

_Triceratops_ Dec 21st, 2019 (edited) 260 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. \begin{tikzpicture}[line width=0.3ex, inner sep = 0ex, scale = 5]
  2. \foreach \i in {0,1,...,16}
  3.  \node (A\i) at ({cos(\i*360/17)},{sin(\i*360/17)});
  4. \foreach \i in {0,1,...,16} {
  5.  \foreach \q in {3,5,6,7} {
  6.    \pgfmathtruncatemacro{\j}{mod(\i+\q,17)}
  7.    \draw[blue]  (A\i) -- (A\j);
  8.  }
  9. }
  10. \foreach \i in {0,1,...,16} {
  11.  \foreach \p in {1,2,4,8} {
  12.    \pgfmathtruncatemacro{\j}{mod(\i+\p,17)}
  13.    \draw[red]  (A\i) -- (A\j);
  14.  }
  15. }
  16. \foreach \i in {0,1,...,16}
  17.  \draw [fill = white] (A\i) circle [radius=0.2ex];
  18. \end{tikzpicture}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top