A relation from $A$ to $B$ is any subset of $A\times B$, no further restrictions required. We call $A$ the domain of the relation and $B$ the codomain of the relation. In the event that both the domain and codomain were the same, we might instead use the phrase "the relation over A" to imply that both the domain and codomain are $A$. For each ordered pair $(a,b)$ in the relation we say that $a$ is related to $b$ and might write this as $(a,b)\in\mathcal{R}, a\mathcal{R}b, a\simeq b$ or many other options depending on the specific relation used and how much we want to emphasize the particular relation in question.
One may picture a relation from $A$ to $B$ by means of a directed bipartite graph with vertices on the left representing the elements in $A$ and vertices on the right representing the elements in $B$ (treating those elements coming from $A$ as distinct from those coming from $B$ even if they are otherwise equal) where we draw a directed arrow leaving an element $a$ from $A$ going to an element $b$ in $B$ if and only if $a$ is related to $b$.
That is precisely the sort of picture you were provided. It is implied then that the relation in question is the relation $\{(1,1),(4,2)\}$ from $\{-1,1,4\}$ to $\{1,2\}$.
In the event that the domain and codomain are the same, one might choose to instead just picture each element as a vertex once, and allowing loops and parallel edges. This is particularly common when dealing with picturing orders, equivalence relations, and permutations. Further conventions might be adopted to make it even easier to interpret as is done for things such as Hasse Diagrams. Also common is to lay the elements out along perpendicular axes and draw a point at a position if the coordinate pair is an element of the relation, what you would recognize as "the graph of relation" as you might draw for the parabola $f(x)=x^2$.
A function is a specific type of relation with additional nice properties. In particular, a function is a relation for whom every element in the domain has exactly one element in the codomain which they are related to. That is to say, if we were to picture it as above, every vertex on the left has exactly one arrow leaving it. That every element in the domain has at least one arrow leaving it is referred to as being everywhere defined and having at most one arrow leaving it is referred to as being well defined.
In your case, there is no arrow leaving the element $-1$ so it is not a function. It is however a relation.
If we were to edit the example a bit, including also an arrow leaving $-1$ going to, say, $1$, so the relation $\{(-1,1),(1,1),(4,2)\}$ from the domain $\{-1,1,4\}$ to the codomain $\{1,2\}$ then this will be both a function and a relation.