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

Function create_graph

tests/python/common/test_propagate.py:10–12  ·  view source on GitHub ↗
(idtype)

Source from the content-addressed store, hash-verified

8
9
10def create_graph(idtype):
11 g = dgl.from_networkx(nx.path_graph(5), idtype=idtype, device=F.ctx())
12 return g
13
14
15def mfunc(edges):

Callers 3

test_prop_nodes_bfsFunction · 0.70
test_prop_edges_dfsFunction · 0.70
test_prop_nodes_topoFunction · 0.70

Calls 1

ctxMethod · 0.45

Tested by

no test coverage detected