Comparing functions and their graphs