A maping diagram can be made of two columns, one represents the domain of a function (values of x or "inputs") and the other colum represents the range of the function (values of y or "outputs")
It can be used to represent any relationship between any two variables.
For the domain {-1, 0, 2}
And the range {1,4}
There are several possible combinations, for example: