(In what follows, $\Omega = \{0,1\}.$)
In set theory, we can define that a relation $X \rightarrow Y$ is a function $X \rightarrow \mathcal{P}(Y)$. This is the same as a subset of $X \times Y$, by the following argument. $$\mathcal{P}(X \times Y) \cong \Omega^{X \times Y} \cong (\Omega^Y)^X \cong \mathcal{P}(Y)^X$$
It turns out relations can be composed, and they're pretty useful. I was thinking of setting up something similar in the world of topological spaces. Define that a relation $X \rightarrow Y$ is a sheaf on $X$ valued in the topos $\mathrm{Sh}(Y)$. I'm not quite sure why I'm defining this, but I'm hopeful that there might be a connection to multivalued-functions.
I'm not sure if this is the same as a sheaf of sets on $X \times Y$.
Anyhoo:
Question. Can "relations" between topological spaces be composed?