MCPcopy
hub / github.com/dmlc/dgl / prop_nodes

Function prop_nodes

python/dgl/propagate.py:16–42  ·  view source on GitHub ↗

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",
)

Source from the content-addressed store, hash-verified

14
15
16def 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
45def prop_edges(

Callers 2

prop_nodes_bfsFunction · 0.85
prop_nodes_topoFunction · 0.85

Calls 1

prop_nodesMethod · 0.80

Tested by

no test coverage detected