dgl.prop_nodes_bfsο
- dgl.prop_nodes_bfs(graph, source, message_func, reduce_func, reverse=False, apply_node_func=None)[source]ο
Message propagation using node frontiers generated by BFS.
- Parameters:
graph (DGLGraph) β The graph object.
source (list, tensor of nodes) β Source nodes.
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.bfs_nodes_generator