Graphs and functions