The following conditions are equivalent: 1. The relation $R$ is a retraction in $\mathsf{Rel}$. 2. We have $R=\operatorname {\mathrm{Gr}}(f)$ for some injective function $f\colon A\to B$.