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

Function create_graph

tests/python/common/test_heterograph-remove.py:8–12  ·  view source on GitHub ↗
(idtype, num_node)

Source from the content-addressed store, hash-verified

6
7
8def create_graph(idtype, num_node):
9 g = dgl.graph([])
10 g = g.astype(idtype).to(F.ctx())
11 g.add_nodes(num_node)
12 return g
13
14
15@parametrize_idtype

Callers 8

test_node_removalFunction · 0.70
test_edge_removalFunction · 0.70
test_node_frameFunction · 0.70
test_edge_frameFunction · 0.70
test_issue1287Function · 0.70

Calls 5

graphMethod · 0.45
toMethod · 0.45
astypeMethod · 0.45
ctxMethod · 0.45
add_nodesMethod · 0.45

Tested by

no test coverage detected