[Tex/LaTex] How to make a 16-gon

tikz-pgf

How would I make a 16-gon only showing the vertices? I want to number the vertices and then connect certain ones with lines. I literally just started using TikZ in LaTeX so help would be appreciated.

Best Answer

An n-gon showing only the vertices is a circle. So it won't make too much difference but TikZ has a geometric shapes library. To show only the vertices remove the draw option from the first node.

\documentclass[tikz]{standalone}
\usetikzlibrary{shapes.geometric}
\begin{document}
\begin{tikzpicture}
\node[regular polygon,regular polygon sides=16,minimum size=5cm,draw] (a){};
\foreach \x in {1,...,16}{\node[circle,fill,inner sep=1pt] at (a.corner \x) {};}
\end{tikzpicture}
\end{document}

enter image description here

Related Question