\documentclass{article}
\usepackage{xypic}
\begin{document}
\xymatrix{A \ar[r] & B}
\end{document}
