The graph of a function can be a horizontal line because the x-value at each point on the line is unique, and a horizontal line passes the vertical line test. The graph of a function cannot be a vertical line because the x-value remains the same at all points, and a vertical line fails the vertical line test.