>>1
It just has to be a function of y, not a function of x.
You can also have the graph of an equation with multiple y values per x and multiple x values per y.
e.g. x^2 + y^2 = 1
The thing is, if you have a function, it has to have an input and give an output.
Now two inputs can correspond to the same output, but if two outputs corresponded to the same input, how would you choose what the value of the function was at that input? It makes no sense (well in the traditional sense of a function, see multifunction)