Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/dmlc/dgl
/ gen_by_mutation
Function
gen_by_mutation
tests/python/common/test_heterograph-misc.py:56–61 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
54
55
56
def
gen_by_mutation():
57
g = dgl.graph([])
58
src, dst = edge_pair_input()
59
g.add_nodes(10)
60
g.add_edges(src, dst)
61
return
g
62
63
64
def
test_query():
Callers
2
_test_edge_ids
Function · 0.85
test_query
Function · 0.85
Calls
4
edge_pair_input
Function · 0.85
graph
Method · 0.45
add_nodes
Method · 0.45
add_edges
Method · 0.45
Tested by
no test coverage detected