I'm trying to build a flowchart using the tikz environment but I'm having some trouble connecting the "No" line from decision to int (and from update to int). How can i draw a line avoiding overlapping?
% Define block styles
\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=blue!20,
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]
\begin{tikzpicture}[node distance = 4cm, auto]
% Place nodes
\node [block] (init) {Generazione scariche ($2^H$)};
\node [block, left of=init] (W_legali) {$\mu_W$ \break $\rho_b^{-1}=\frac{P}{n_b+1}$};
\node [block, right of=init] (W_nlegali) {$\mu_W$ \break $\rho_b^{-1}=\frac{P}{n_b}$};
\node [block, below of=W_legali] (fo_legale) {$min$ $f.o_{W \ge W_L}$};
\node [block, below of=W_nlegali] (fo_nlegale) {$min$ $f.o_{W < W_L}$};
\node [decision, below of=init, node distance=6cm] (decide) {$min$ $f.o_{W \ge W_L}$ < $min$ $f.o_{W < W_L}$};
\node [block, right of=fo_nlegale, node distance=3cm] (update) {Aggiorno $n_b$};
% Draw edges
\path [line] (init) -- node {$W_i \ge W_L$}(W_legali);
\path [line] (init) -- node {$W_i < W_L$}(W_nlegali);
\path [line] (W_legali) -- (fo_legale);
\path [line] (W_nlegali) -- (fo_nlegale);
\path [line] (fo_legale) -- (decide);
\path [line] (fo_nlegale) -- (decide);
\path [line] (decide) -| node [near start] {si} (update);
\path [line] (decide) |- node {no} (init);
\end{tikzpicture}
I strive for something like this (forget about line thickness):


\tikzsetor\tikzstylebe used to define TikZ styles? and Difference betweenright of=andright=ofin PGF/TikZ Furthermore, you’re minimal working example (MWE) misses thearrowsand theshapes.geometriclibrary. – Qrrbrbirlbel Sep 29 '13 at 10:04