\begin{figure}[h]
\centering
\begin{asy}
size (3cm);
pair A, B, C, D;
A=(1,0);
B=(3,0);
C=(0,0);
D=(5,0);
draw(C--D,EndArrow);
dot("$A$",A,N);
dot("$B$",B,N);
\end{asy}
\label{fig:directed_segments}
\end{figure}