dgl.prop_nodes_topo๏ƒ

dgl.prop_nodes_topo(graph, message_func, reduce_func, reverse=False, apply_node_func=None)[source]๏ƒ

Message propagation using node frontiers generated by topological order.

Parameters:
  • graph (DGLGraph) โ€“ The graph object.

  • message_func (callable) โ€“ The message function.

  • reduce_func (callable) โ€“ The reduce function.

  • reverse (bool, optional) โ€“ If true, traverse following the in-edge direction.

  • apply_node_func (callable, optional) โ€“ The update function.

See also

dgl.traversal.topological_nodes_generator