how can you tell when y is a function of x on a graph

any vertical line can cross the graph only once.