The domain is the x-values used by the graph. (See Domain/Red graph.)
The range is the y-values used by the graph. (See Range/Blue graph.)
As long as the graph passes the vertical line test, it is a function. Does this pass the vertical line test? Does any vertical line hit the graph more than once?