%\begin{figure}[h!]

  \definecolor{myred}{HTML}{d01e1e}
  \definecolor{mygreen}{HTML}{129d1c}
  \definecolor{myblue}{HTML}{0000FF}
  \makeatletter

%\begin{center}
      %\resizebox{10cm}{!}{
  \begin{tikzpicture}[>=latex, node distance=1cm, on grid, auto]

    \node (S1) [draw, regular polygon, regular polygon sides=3, minimum
    size=1cm, shape border rotate=180, color=mygreen] {}; %{;};

    \path (S1.west)+(-0.5,-1) node (A2) [draw, circle, minimum size=0.5mm, color=myred] {};
    \path (A2.west)+(-0.25,-1) node (A1) [draw, regular polygon, regular
    polygon sides=6, minimum size=1cm, color=myred] {}; %{A};

  \path (S1.east)+(0.5,-1) node (S2) [draw, rectangle, minimum size=0.5mm, color=mygreen] {};
    \path (S2.east)+(0.25,-1) node (B1) [draw, regular polygon, regular polygon
    sides=5, minimum size=1cm, color=myblue] {}; %{B};

       %\node (A1) [draw, regular polygon, regular polygon sides=6, minimum size=1cm] {A};
       %\path (A1.east)+(0.25,1) node (A2) [draw, circle, minimum size=0.5mm] {};
       %\path (A2.east)+(0.5,1) node (S1) [draw, regular polygon, regular polygon sides=3, minimum size=0.5cm, shape border rotate=180] {;};
       %\path (S1.east)+(0.5,-1) node (S2) [draw, rectangle, minimum size=0.5mm] {};
       %\path (S2.east)+(0.25,-1) node (B1) [draw, regular polygon, regular polygon sides=5, minimum size=1cm] {B};

    \path[-,color=myred] (A1) edge (A2);
    \path[-,color=mygreen] (A2) edge (S1);
    \path[-,color=mygreen] (S1) edge (S2);
    \path[-,color=myblue] (S2) edge (B1);

    \path (A2.west)+(-1.5,0) node (arrow) [minimum size=0.5cm] {$\longrightarrow$};
    \path (arrow.west)+(-1,0) node (AB) [draw, rectangle, inner sep=0.2cm] {A;B};

  \end{tikzpicture}
%}
  %\caption{}
%\label{fig:simpleApproachExample}
%\end{center}
%\end{figure}
