Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/dmlc/dgl
/ nx_input
Function
nx_input
tests/python/common/test_heterograph-misc.py:29–34 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
27
28
29
def
nx_input():
30
g = nx.DiGraph()
31
src, dst = edge_pair_input()
32
for
i, e in enumerate(zip(src, dst)):
33
g.add_edge(*e, id=i)
34
return
g
35
36
37
def
elist_input():
Callers
nothing calls this directly
Calls
2
edge_pair_input
Function · 0.85
add_edge
Method · 0.45
Tested by
no test coverage detected