I am currently writing an algorithm. I want to write an algorithm given below. Till now I have been able to do this much only.

\usepackage{hyperref}% http://ctan.org/pkg/hyperref
\usepackage{cleveref}% http://ctan.org/pkg/cleveref

\author{shi }
\date{October 2018}



\textbf{Input} : $G^{'}$\;
\textbf{Decide} : Yes or No  \\~\\

 \caption{ \textsc{Algorithm} }


enter image description here

Question: How to close the boundaries from the left side and right side of the algorithm?


Instead of




This yields:

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.