simpleApproachExample.tex 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. %\begin{figure}[h!]
  2. \definecolor{myred}{HTML}{d01e1e}
  3. \definecolor{mygreen}{HTML}{129d1c}
  4. \definecolor{myblue}{HTML}{0000FF}
  5. \makeatletter
  6. %\begin{center}
  7. %\resizebox{10cm}{!}{
  8. \begin{tikzpicture}[>=latex, node distance=1cm, on grid, auto]
  9. \node (S1) [draw, regular polygon, regular polygon sides=3, minimum
  10. size=1cm, shape border rotate=180, color=mygreen] {}; %{;};
  11. \path (S1.west)+(-0.5,-1) node (A2) [draw, circle, minimum size=0.5mm, color=myred] {};
  12. \path (A2.west)+(-0.25,-1) node (A1) [draw, regular polygon, regular
  13. polygon sides=6, minimum size=1cm, color=myred] {}; %{A};
  14. \path (S1.east)+(0.5,-1) node (S2) [draw, rectangle, minimum size=0.5mm, color=mygreen] {};
  15. \path (S2.east)+(0.25,-1) node (B1) [draw, regular polygon, regular polygon
  16. sides=5, minimum size=1cm, color=myblue] {}; %{B};
  17. %\node (A1) [draw, regular polygon, regular polygon sides=6, minimum size=1cm] {A};
  18. %\path (A1.east)+(0.25,1) node (A2) [draw, circle, minimum size=0.5mm] {};
  19. %\path (A2.east)+(0.5,1) node (S1) [draw, regular polygon, regular polygon sides=3, minimum size=0.5cm, shape border rotate=180] {;};
  20. %\path (S1.east)+(0.5,-1) node (S2) [draw, rectangle, minimum size=0.5mm] {};
  21. %\path (S2.east)+(0.25,-1) node (B1) [draw, regular polygon, regular polygon sides=5, minimum size=1cm] {B};
  22. \path[-,color=myred] (A1) edge (A2);
  23. \path[-,color=mygreen] (A2) edge (S1);
  24. \path[-,color=mygreen] (S1) edge (S2);
  25. \path[-,color=myblue] (S2) edge (B1);
  26. \path (A2.west)+(-1.5,0) node (arrow) [minimum size=0.5cm] {$\longrightarrow$};
  27. \path (arrow.west)+(-1,0) node (AB) [draw, rectangle, inner sep=0.2cm] {A;B};
  28. \end{tikzpicture}
  29. %}
  30. %\caption{}
  31. %\label{fig:simpleApproachExample}
  32. %\end{center}
  33. %\end{figure}