LaTeX forum ⇒ Graphics, Figures & Tablesdrawing figure

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

drawing figure

Postby fafa » Wed Feb 22, 2017 1:22 am

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:
  1. % A simple cycle
  2. \documentclass{article}
  3. \usepackage{tikz}
  4. \begin{document}
  5. \begin{tikzpicture}
  6.  
  7. \def \n {5}
  8. \def \radius {2cm}
  9. \def \margin {4} % margin in angles, depends on the radius
  10. \node[draw, circle] (Center) at (0,0) {{A}};
  11. \foreach \s in {1,...,\n}
  12. {
  13. \node[draw, circle] at ({360/\n * (\s - 1)}:\radius) {$\s$};
  14. %\draw[->, >=latex] ({360/\n * (\s - 1)+\margin}:\radius)
  15. % arc ({360/\n * (\s - 1)+\margin}:{360/\n * (\s)-\margin}:\radius);
  16. }
  17.  
  18. \end{tikzpicture}
  19. \end{document}


Thank you

Tags:

User avatar
Stefan Kottwitz
Site Admin
Posts: 9104
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Wed Feb 22, 2017 11:49 am

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
Site admin


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: Bing [Bot] and 12 guests