This is what I am trying to currently draw. I however do not know how to add the purple lines or green points. I am able to draw a regular octagon with points and the outer lines by the following:
\begin{tikzpicture} \newdimen\R
\R=1.3cm
\draw (0:\R) \foreach \x in {45,90,135,180,225,270,315,360} { -- (\x:\R) };
\foreach \x/\l/\p in
{ 45/,
90/,
135/,
180/,
225/,
270/,
315/,
360
}
\node[inner sep=1pt,circle,draw,fill] at (\x:\R) {};
\end{tikzpicture}
But I am unsure of how to add the rest.