Both graphs represent functions.