Both figures are examples of functions. Figure A represents a function because for every input (x) value, there is exactly one defined output (y) value. Figure B represents a function also, because for every input (x) value, there is exactly one defined output (y) value. The gap in the line (between x = 0 and x = 3) does not preclude this from being a function; the function is just undefined here.