Ok, I have another question. I can make a loop diagram with the matrix way:
However working with nodes seems way more convenient, this is my code:
\documentclass[12pt, letterpaper, twoside]{article}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric, arrows}
\begin{document}
\tikzstyle{startstop} = [rectangle, rounded corners, minimum width=3cm, minimum height=1cm,text centered, draw=black, fill=red!30]
\tikzstyle{io} = [trapezium, trapezium left angle=70, trapezium right angle=110, minimum width=3cm, minimum height=1cm, text centered, draw=black, fill=blue!30]
\tikzstyle{process} = [rectangle, minimum width=3cm, minimum height=1cm, text centered, draw=black, fill=orange!30]
\tikzstyle{decision} = [diamond, minimum width=3cm, minimum height=1cm, text centered, draw=black, fill=green!30]
\tikzstyle{arrow} = [thick,->,>=stealth]
\begin{tikzpicture}[node distance=2cm]
\node (start) [startstop] {Start};
\node (in1) [io, below of=start] {Input};
\node (pro1) [process, below of=in1] {Loop start};
\node (pro2) [process, below of=pro1] {Process 1};
\node (pro3) [process, below of=pro2] {Process 1};
\node (dec1) [decision, below of=pro3, yshift=-0.5cm] {Decision 1};
\draw [arrow] (start) -- (in1);
\draw [arrow] (in1) -- (pro1);
\draw [arrow] (pro1) -- (pro2);
\draw [arrow] (pro2) -- (pro3);
\draw [arrow] (pro3) -- (dec1);
\end{tikzpicture}
\end{document}
I tried to apply the same technique that I used with the matrices but there were cryptic errors about an undefined control sequence...
So, what is the best way to add a rectangular connector with a little no (or yes) on it?



\tikzstyleis deprecated ... – Zarko Jan 10 '21 at 09:13but it creates a very strange path...
Thanks for the headsup about tikzstyle. This is a self contained problem, sorry it isn't clear, not sure how to clarify... I want the code to produce a picture like the one shown
– Qni Jan 10 '21 at 09:52