\documentclass[border=1pt]{standalone}
\usepackage[polish]{babel}
\usepackage[utf8]{inputenc} 
\usepackage[T1]{fontenc}
\usepackage{fourier}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}

\begin{document}

\begin{tikzpicture}
  [vertex/.style={draw,circle,minimum size=8mm},>=LaTeX]
\node[vertex] (p1) at (45:2) {p1};
\foreach \i [remember=\i as \j (initially  1)] in {2,...,8} {
  \node[vertex] (p\i) at (\i*45:2) {p\i};
  \draw[->] (p\j) -- (p\i); }
\draw[->] (p8) -- (p1);
\end{tikzpicture}

\end{document}