robots-walk-away.tex 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. \documentclass{article}
  2. \usepackage[pdftex,active,tightpage]{preview}
  3. \setlength\PreviewBorder{2mm}
  4. \usepackage{tikz}
  5. \usepackage{tkz-fct}
  6. \usetikzlibrary{shapes.misc}
  7. \usetikzlibrary{shapes, calc, decorations}
  8. \usepackage{amsmath,amssymb}
  9. \begin{document}
  10. \begin{preview}
  11. \begin{tikzpicture}[dot/.style={ thick,
  12. %draw=gray,
  13. %cross out,
  14. fill,
  15. shape=circle,
  16. inner sep=3pt,
  17. minimum width=4pt,
  18. minimum height=4pt}]
  19. \newcommand{\R}{2cm};
  20. \node (a) [dot] at (0,0) {};
  21. \node (b) [dot] at (\R,0) {};
  22. \node (c) [dot] at (2*\R,0) {};
  23. \node (d) [dot] at (3*\R,0) {};
  24. \node (e) [dot] at (0,\R) {};
  25. \node (f) [dot] at (\R,\R) {};
  26. \node (g) [dot] at (2*\R,\R) {};
  27. \node (h) [dot] at (3*\R,\R) {};
  28. %\node (center1) [thick,draw=blue,cross out,black,inner sep=3pt,minimum width=4pt,minimum height=4pt] at (0.5*\R,0.5*\R) {};
  29. \draw[dotted,thick] (0.5*\R,0.5*\R) circle(\R);
  30. \node (center1) at (0.5*\R+3,0.5*\R) {Cluster 1};
  31. \draw[dotted,thick] (2.5*\R,0.5*\R) circle(\R);
  32. \node (center1) at (2.5*\R-3,0.5*\R) {Cluster 2};
  33. %\draw[dashed,thick] (a) circle(\R);
  34. %\draw[dashed,thick] (b) circle(\R);
  35. %\draw[dashed,thick] (c) circle(\R);
  36. \draw[->, ultra thick] (b) -- (a);
  37. \draw[->, ultra thick] (f) -- (e);
  38. \draw[->, ultra thick] (c) -- (d);
  39. \draw[->, ultra thick] (g) -- (h);
  40. \draw[->, ultra thick] (a) to[bend right] (e);
  41. \draw[->, ultra thick] (e) to[bend right] (a);
  42. \draw[->, ultra thick] (d) to[bend right] (h);
  43. \draw[->, ultra thick] (h) to[bend right] (d);
  44. \end{tikzpicture}
  45. \end{preview}
  46. \end{document}