For a relation to be a function, use the Vertical Line Test:
Draw a vertical line anywhere on the graph, and if it never hits the graph more than once, it is a function. If your vertical line hits twice or more, it's not a function.
So, look at the graphs:
Graph 1: Not a function
Graph 2: Not a function
Graph 3: Not a function
Graph 4: IS a function
Graph 5: IS a function
Graph 6: Not a function