In the below image, I want to add two things
- A horizontal line after output which separate input-output from main part of algorithm
- I want end word (line 5) at the vertical line from if statement.
See code:
\documentclass{article}
\usepackage[linesnumbered,ruled,vlined]{algorithm2e}
\RestyleAlgo{boxruled}
\begin{document}
\begin{algorithm}[H]
\SetAlgoLined
\textbf{Input} : A graph $G$\;
\textbf{Find} : Graph and its color\\
\uIf{Complement o}{
Do nothng \\~\\
}
Do different things here
\caption{ \textsc{ Algorithm Graph }}
\label{algo8}
\end{algorithm}
\end{document}