快速入门
进阶资料
API 参考
prop_nodes_bfs()
备注
其他
使用 BFS 生成的节点前沿进行消息传播。
graph (DGLGraph) – 图对象。
source (list, tensor of nodes) – 源节点。
message_func (callable) – 消息函数。
reduce_func (callable) – 聚合函数。
reverse (bool, optional) – 如果为 True,则沿入边方向遍历。
apply_node_func (callable, optional) – 更新函数。
另见
dgl.traversal.bfs_nodes_generator