0

I wish to draw the picture as following: enter image description here

I write the code to draw the picture, however, I don't know how to draw the line that connects the diamond to the circle.

\documentclass[tikz]{standalone}
\usepackage{tikz}
\tikzset{
  my box/.style = {draw, minimum width = 2em, minimum height=1em},
}
\begin{document}
\begin{tikzpicture}[node distance=4mm]
\node[my box,align=center](s1){$S_1$};
\node[draw,circle,left = of s1](start){};
\draw[->] (start)--(s1);
\node[draw,diamond,right = of s1](end){};
\draw[->] (s1)--(end);
\end{tikzpicture
\end{document}
sweetyBaby
  • 3,029

0 Answers0