Functional method for :func:`dgl.DGLGraph.prop_nodes`. Parameters ---------- node_generators : generator The generator of node frontiers. message_func : callable, optional The message function. reduce_func : callable, optional The reduce function. app
(
graph,
nodes_generator,
message_func="default",
reduce_func="default",
apply_node_func="default",
)
| 14 | |
| 15 | |
| 16 | def prop_nodes( |
| 17 | graph, |
| 18 | nodes_generator, |
| 19 | message_func="default", |
| 20 | reduce_func="default", |
| 21 | apply_node_func="default", |
| 22 | ): |
| 23 | """Functional method for :func:`dgl.DGLGraph.prop_nodes`. |
| 24 | |
| 25 | Parameters |
| 26 | ---------- |
| 27 | node_generators : generator |
| 28 | The generator of node frontiers. |
| 29 | message_func : callable, optional |
| 30 | The message function. |
| 31 | reduce_func : callable, optional |
| 32 | The reduce function. |
| 33 | apply_node_func : callable, optional |
| 34 | The update function. |
| 35 | |
| 36 | See Also |
| 37 | -------- |
| 38 | dgl.DGLGraph.prop_nodes |
| 39 | """ |
| 40 | graph.prop_nodes( |
| 41 | nodes_generator, message_func, reduce_func, apply_node_func |
| 42 | ) |
| 43 | |
| 44 | |
| 45 | def prop_edges( |
no test coverage detected