approachResolutionPhase2.tex 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. \definecolor{myred}{HTML}{d01e1e}
  2. \definecolor{myblue}{HTML}{0000FF}
  3. \definecolor{mygreen}{HTML}{129d1c}
  4. \begin{tikzpicture}[>=latex, node distance=1cm, on grid, auto]
  5. %, scale=0.6, transform shape]
  6. %Seq
  7. \node (S1) [draw, regular polygon, regular polygon sides=3, minimum size=1cm, shape border rotate=180, color=mygreen] {}; %{;};
  8. \path (S1.west)+(-0.5,-1) node (SA2) [draw, circle, minimum size=0.5mm, dashed, color=myred] {};
  9. \path (S1.east)+(0.5,-1) node (S2) [draw, rectangle, minimum size=0.5mm, color=mygreen] {};
  10. \path[-,color=mygreen] (SA2) edge (S1);
  11. \path[-,color=mygreen] (S1) edge (S2);
  12. %A
  13. \node (A1) [draw, regular polygon, regular polygon sides=6, minimum size=1cm, color=myred, left of=SA2,xshift=-0.5cm] {}; %{A};
  14. \path (A1.east)+(0.25,1) node (A2) [draw, circle, minimum size=0.5mm, color=myred] {};
  15. \path[-,color=myred] (A1) edge (A2);
  16. %B
  17. \node (B1) [draw, regular polygon, regular polygon sides=5, minimum size=1cm, color=myblue, right of=S2,xshift=0.5cm] {}; %{B};
  18. \path (B1.west)+(-0.25,1) node (B2) [draw, rectangle, minimum size=0.5mm, color=mygreen, dashed] {};
  19. \path[-,color=myblue] (B2) edge (B1);
  20. \path (B2.east)+(1.75,-0.5) node (arrow) [minimum size=0.5cm] {$\longrightarrow$};
  21. \node at (arrow.north) (r) {$r$};
  22. %\path (arrow.west)+(-0.5,0) node (A) {A;B};
  23. %result
  24. \node (rS1) [draw, regular polygon, regular polygon sides=3, minimum
  25. size=1cm, shape border rotate=180, color=mygreen, right of=r,
  26. xshift=1.5cm,yshift=0.75cm] {}; %{;};
  27. \path (rS1.west)+(-0.5,-1) node (rA2) [draw, circle, minimum size=0.5mm, color=myred] {};
  28. \path (rA2.west)+(-0.25,-1) node (rA1) [draw, regular polygon, regular
  29. polygon sides=6, minimum size=1cm, color=myred] {}; %{A};
  30. \path (rS1.east)+(0.5,-1) node (rS2) [draw, rectangle, minimum size=0.5mm, color=mygreen] {};
  31. \path (rS2.east)+(0.25,-1) node (rB1) [draw, regular polygon, regular polygon
  32. sides=5, minimum size=1cm, color=myblue] {}; %{B};
  33. \path[-,color=myred] (rA1) edge (rA2);
  34. \path[-,color=mygreen] (rA2) edge (rS1);
  35. \path[-,color=mygreen] (rS1) edge (rS2);
  36. \path[-,color=myblue] (rS2) edge (rB1);
  37. \end{tikzpicture}