\documentclass{article}

\begin{document}

\begin{center}
\begin{minipage}{2cm}
\begin{verbatim}
2   5
 \ / 
  3   4
   \ /
    1
\end{verbatim}
\end{minipage}
\end{center}

\end{document}
