54. Operations on relations
54.1 Union and intersection
Since relations from $A$ to $B$ are subsets of $A\times B$, all the usual set operations such as union and intersection can be performed on them.
54.1.1 Example On $\mathrm{R}$, the union of $\Delta_{\mathrm{R}}$ and “$<$” is (of course!) “$\leq$ ”, and the intersection of “$\leq$” and “$\geq$” is $\Delta_{\mathrm{R}}$. These statements translate into the obviously true statements
$$r \leq s\Leftrightarrow (r < s\vee r = s)$$
and
$$(r \leq s\wedge r \geq s )\Leftrightarrow r = s$$
54.2 Definition: opposite
The opposite of a relation $\alpha \in \operatorname{Rel}(A,B)$ is the relation $\alpha^{\mathrm{op}} \in \operatorname{Rel}(B,A)$ defined by $\alpha^{\mathrm{op}} = \left\{ \langle b,a\rangle \mid \langle a,b\rangle \in \alpha \right\}$.
54.2.1 Fact This definition gives an equivalence
$$b\,\alpha^{\mathrm{op}}\,a \Leftrightarrow a\,\alpha\,b$$
It follows that $\alpha \mapsto \alpha^{\mathrm{op}}\colon \operatorname{Rel}(A,B)\to \operatorname{Rel}(B,A)$ is a function.
54.2.2 Example On $\mathrm{R}$ the opposite of “$>$” is “$<$” and the opposite of “$\leq$” is “$\geq$”. Of course, for any set $A$, the opposite of $\Delta _{A}$ is $\Delta _{A}$.
Page 77 of the book (PDF).