Graph of a function
$f: RP^1 \rightarrow RP^1$

The graph of a function is the set of ordered pairs of elements of $RP^1$.
We consider $RP^1$ to be $S^1$, the circle, so the graph is a subset of $S^1 \times S^1$ : the torus.