Which relation is a function?

B
A relation that is a function can only have one output value for each input value.
Graph A has two output values for x = -2.
Graph C has two output values for x = 0.
Graph D has two output values for x = -1.