You may have done a horizontal line test instead of a vertical line test. If you draw a vertical line through any point on the graph, you will find that the line passes through more than one point. Therefore, the graph fails the vertical line test and does not represent a function.