dgl.propagate.prop_nodes_topo

dgl.propagate.prop_nodes_topo(graph, reversed=False, message_func='default', reduce_func='default', apply_node_func='default')[source]

Message propagation using node frontiers generated by topolocial order.

Parameters:
  • graph (DGLGraph) – The graph object.
  • reversed (bool, optional) – If true, traverse following the in-edge direction.
  • message_func (callable, optional) – The message function.
  • reduce_func (callable, optional) – The reduce function.
  • apply_node_func (callable, optional) – The update function.