So can you please help me.
this is the latex code:
Code: Select all
% A simple cycle
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\def \n {5}
\def \radius {2cm}
\def \margin {4} % margin in angles, depends on the radius
\node[draw, circle] (Center) at (0,0) {{A}};
\foreach \s in {1,...,\n}
{
\node[draw, circle] at ({360/\n * (\s - 1)}:\radius) {$\s$};
%\draw[->, >=latex] ({360/\n * (\s - 1)+\margin}:\radius)
% arc ({360/\n * (\s - 1)+\margin}:{360/\n * (\s)-\margin}:\radius);
}
\end{tikzpicture}
\end{document}