MCPcopy
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
29def 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
37def elist_input():

Callers

nothing calls this directly

Calls 2

edge_pair_inputFunction · 0.85
add_edgeMethod · 0.45

Tested by

no test coverage detected