I'm trying to make a very simple flowchart using tikz.
Here is what it looks like now:
And here is what I need it to look like:
I've found an example of a flowchart online using tikz, and here is my style definition:
\tikzstyle{decision} = [diamond, draw, fill=blue!20, text width=4.5em, text badly centered, node distance=3cm, inner sep=0pt]
\tikzstyle{block} = [rectangle, draw, fill=black!25, text width=5em, text centered, rounded corners, minimum height=4em]
\tikzstyle{line} = [draw, -latex']
\tikzstyle{cloud} = [draw, ellipse,fill=red!20, node distance=3cm, minimum height=2em]
and here is my flowchart code:
\begin{figure}[!h]
\centering
\begin{tikzpicture}[node distance = 2cm, auto]
\node [block] (st1) {Stage 1};
\node [block, right of=st1, node distance=3cm] (st2) {Stage 2};
\node [block, right of=st2, node distance=3cm] (st3) {Stage 3};
\path [line] (st1) -- (st2);
\path [line] (st2) -- (st3);
\end{tikzpicture}
\end{figure}
If I had just built the image using co-ordinate based shapes, it would have been time consuming but simple just to add the lines and text I need. But since I'm adding these nodes and connecting nodes, I don't know how to add a line with 2 bends.