This is the correct graph.
The graph of the function is the set of all points (x,y) in the plane that satisfies the equation y=f(x) y = f ( x ) . ... If we can draw any vertical line that intersects a graph more than once, then the graph does not define a function because that x value has more than one output.