does the graph represents a function

In this situation, we would use something called the vertical line test. In other words, if we can draw a vertical line that passes more than one point on the graph, then the relation is not a function.
If we use the vertical line test in this situation, it is not possible to draw a vertical line that passes through more than one point. Therefore, this does represent a function.