does a horizontal line represent function?

yes -- each x is related to a single y value.

No vertical line crosses the graph in more than one place.