Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/dmlc/dgl
/ load
Method
load
python/dgl/data/synthetic.py:180–182 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
178
return
os.path.exists(self.graph_path)
179
180
def
load(self):
181
graphs, _ = load_graphs(str(self.graph_path))
182
self._graph = graphs[0]
183
184
def
__getitem__(self, idx):
185
assert idx == 0,
"This dataset has only one graph."
Callers
1
process
Method · 0.45
Calls
1
load_graphs
Function · 0.85
Tested by
no test coverage detected