A graph can also tell us if a given function has a one-to-one property or not. This rule is called the Horizontal Line Test: if any horizontal line that you draw on top of the graph intersects only once with the curve, then the function is injective; otherwise, if you can draw a horizontal line that intersects twice or more with the curve, then the function is NOT one-to-one.
This is a one-to-one function! Miriam Briskman, CC BY-NC 4.0
This is NOT a one-to-one function. Miriam Briskman, CC BY-NC 4.0