I need to make a line for the bottom of step 3 to step 4.
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{varwidth}
\usepackage{algpseudocode}
\usepackage{algorithm}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{amsthm}
\usepackage{newfloat}
\usepackage{multirow}
\usepackage{indentfirst}
\usepackage{tabularx}
\usepackage{xcolor,colortbl}
\usetikzlibrary{shapes.geometric, arrows}
\usetikzlibrary{positioning}
\usetikzlibrary{calc,shapes.multipart,chains,arrows}
\tikzstyle{line} = [draw, -latex']
\tikzstyle{rect10} = [draw, rectangle, fill = red!25, text width = 8em, text centered, minimum height = 2em]
\tikzstyle{rect11} = [draw, rectangle, fill = red!45, text width = 8em, text centered, minimum height = 2em]
\tikzstyle{rect12} = [draw, rectangle, fill = blue!25, text width = 6em, text centered, minimum height = 3em]
\tikzstyle{rect14} = [draw, rectangle, fill = blue!40, text width = 8em, text centered, minimum height = 3em]
\tikzstyle{rect13} = [draw, rectangle, fill = purple!45, text width = 6em, text centered, minimum height = 4em]
\tikzstyle{diam3} = [draw, diamond, fill = green!30,text width=8em,text badly centered, inner sep=0pt]
\begin{figure}[h]
\begin{tikzpicture}
\node [rect11] (step1){Initialize
Distances};
\node [rect10, below of=step1,node distance=2cm] (step2){Initialize
Dictionary};
\node [diam3, rounded corners, below of= step2,node distance=3.5cm] (step3){Dijkstra
(V-1 times)};
\node [diam4, rounded corners, right of= step3,node distance=4cm] (step4){Update
Dictionary};
\path [line] (step1)--(step2);
\path [line] (step2)--(step3);
\path [line,rounded corners] (step3)--++(-3,-2) --++(1,1)(step4);;
\path [line,rounded corners] (step4)--+(-2,2) --(step3);
\end{tikzpicture}
\end{figure}

\path [line,rounded corners] (step3)--++(2,-2) --(step4);– Ignasi Nov 20 '17 at 16:40