fix docstring of CGraph.gradient