Graphics, Figures & Tablesdrawing figure

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

drawing figure

Post by fafa »

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,
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}
Thank you

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
TikZ book
User avatar
Stefan Kottwitz
Site Admin
Posts: 10315
Joined: Mon Mar 10, 2008 9:44 pm

drawing figure

Post by Stefan Kottwitz »

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
LaTeX.org admin
Post Reply