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

Method save

python/dgl/data/sbm.py:172–182  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

170 )
171
172 def save(self):
173 save_graphs(self.graph_path, self._graphs)
174 save_graphs(self.line_graph_path, self._line_graphs)
175 save_info(
176 self.info_path,
177 {
178 "graph_degree": self._graph_degrees,
179 "line_graph_degree": self._line_graph_degrees,
180 "pm_pds": self._pm_pds,
181 },
182 )
183
184 def load(self):
185 self._graphs, _ = load_graphs(self.graph_path)

Callers

nothing calls this directly

Calls 2

save_graphsFunction · 0.85
save_infoFunction · 0.85

Tested by

no test coverage detected