\documentstyle[alltt]{article}
\begin{document}

\section{Breadth-First Search}

\input{algorithm/bfs}

\section{Depth-First Search}

\input{algorithm/dfs}

\section{Strongly Connected Components}

\input{algorithm/scc}

\section{Topological Sort}

\input{algorithm/topsort}

\end{document}
