Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
10
def
create_graph(idtype):
11
g = dgl.from_networkx(nx.path_graph(5), idtype=idtype, device=F.ctx())
12
return
g
13
14
15
def
mfunc(edges):
Callers
3
test_prop_nodes_bfs
Function · 0.70
test_prop_edges_dfs
Function · 0.70
test_prop_nodes_topo
Function · 0.70
Calls
1
ctx
Method · 0.45
Tested by
no test coverage detected