## LaTeX forum ⇒ Graphics, Figures & Tables ⇒ drawing figure

Information and discussion about graphics, figures & tables in LaTeX documents.
fafa
Posts: 1
Joined: Wed Feb 22, 2017 1:07 am

### drawing figure

Hi, please i need you help. I tried to draw this figure https://i.stack.imgur.com/0HTEO.png , but i didn't add the line between nodes and the central nodes(double connection)and the Disconnection character (X) between two nodes,
this is the latex code:
% 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}

Thank you

Tags:

Stefan Kottwitz
Posts: 8980
Joined: Mon Mar 10, 2008 9:44 pm
Hi Fafa,

welcome to the forum!

It seems you uploaded the image somewhere else. Where did you post this question too? I don't want to spent time on working on it if it's already discussed and finished somewhere else.

Stefan