Relations, Functions and Graphs