Which relation is a function?

A)
A function can be write in a way of f(x) = y
That means that for each value of x only one value of y is valid. In other words
if f(x) = y and f(x) = z with y<>z then f(x) is not a function.
And since A is the only graph that has this property it's the answer.