dgl.DGLGraph.register_reduce_func

DGLGraph.register_reduce_func(func)

Deprecated: please directly call update_all() with func as argument.