dgl.DGLGraph.update_all

DGLGraph.update_all(message_func='default', reduce_func='default', apply_node_func='default')[source]

Send messages through all edges and update all nodes.

Optionally, apply a function to update the node features after receive.

This is a convenient combination for performing send(self, self.edges(), message_func) and recv(self, self.nodes(), reduce_func, apply_node_func).

Parameters:
  • message_func (callable, optional) – Message function on the edges. The function should be an Edge UDF.
  • reduce_func (callable, optional) – Reduce function on the node. The function should be a Node UDF.
  • apply_node_func (callable, optional) – Apply function on the nodes. The function should be a Node UDF.

See also

send(), recv()