MCPcopy
hub / github.com/dmlc/dgl / checkall

Function checkall

tests/python/common/transforms/test_to_block.py:53–59  ·  view source on GitHub ↗
(g, bg, dst_nodes, include_dst_in_src=True)

Source from the content-addressed store, hash-verified

51 assert F.array_equal(induced_dst_bg, induced_dst_ans)
52
53 def checkall(g, bg, dst_nodes, include_dst_in_src=True):
54 for etype in g.etypes:
55 ntype = g.to_canonical_etype(etype)[2]
56 if dst_nodes is not None and ntype in dst_nodes:
57 check(g, bg, ntype, etype, dst_nodes[ntype], include_dst_in_src)
58 else:
59 check(g, bg, ntype, etype, None, include_dst_in_src)
60
61 # homogeneous graph
62 g = dgl.graph(

Callers 1

test_to_blockFunction · 0.85

Calls 2

checkFunction · 0.70
to_canonical_etypeMethod · 0.45

Tested by

no test coverage detected