Add a function graph