MCPcopy
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
56def 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
64def test_query():

Callers 2

_test_edge_idsFunction · 0.85
test_queryFunction · 0.85

Calls 4

edge_pair_inputFunction · 0.85
graphMethod · 0.45
add_nodesMethod · 0.45
add_edgesMethod · 0.45

Tested by

no test coverage detected