update doc (graph, function)