Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
8
def
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_removal
Function · 0.70
test_multigraph_node_removal
Function · 0.70
test_multigraph_edge_removal
Function · 0.70
test_edge_removal
Function · 0.70
test_node_and_edge_removal
Function · 0.70
test_node_frame
Function · 0.70
test_edge_frame
Function · 0.70
test_issue1287
Function · 0.70
Calls
5
graph
Method · 0.45
to
Method · 0.45
astype
Method · 0.45
ctx
Method · 0.45
add_nodes
Method · 0.45
Tested by
no test coverage detected