To determine if the graph represents a function you can draw a vertical line and check if this line, intersects the graph more than once. If no vertical line, can intersect the graph more than once, the graph represents a function.
In this case, no vertical line can do it, so the graph is a function.