Add graph to advice function.