MCPcopy Index your code
hub / github.com/dmlc/dgl / load_graph_v2

Function load_graph_v2

python/dgl/data/graph_serialize.py:200–207  ·  view source on GitHub ↗

Internal functions for loading DGLGraphs.

(filename, idx_list=None)

Source from the content-addressed store, hash-verified

198
199
200def load_graph_v2(filename, idx_list=None):
201 """Internal functions for loading DGLGraphs."""
202 if idx_list is None:
203 idx_list = []
204 assert isinstance(idx_list, list)
205 heterograph_list = _CAPI_LoadGraphFiles_V2(filename, idx_list)
206 label_dict = load_labels_v2(filename)
207 return [gdata.get_graph() for gdata in heterograph_list], label_dict
208
209
210def load_graph_v1(filename, idx_list=None):

Callers 1

load_graphsFunction · 0.85

Calls 2

load_labels_v2Function · 0.85
get_graphMethod · 0.45

Tested by

no test coverage detected