Relations, Functions, and Graphs