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

Method save

python/dgl/data/citation_graph.py:234–237  ·  view source on GitHub ↗

save the graph list and the labels

(self)

Source from the content-addressed store, hash-verified

232 return False
233
234 def save(self):
235 """save the graph list and the labels"""
236 save_graphs(str(self.graph_path), self._g)
237 save_info(str(self.info_path), {"num_classes": self.num_classes})
238
239 def load(self):
240 graphs, _ = load_graphs(str(self.graph_path))

Callers

nothing calls this directly

Calls 2

save_graphsFunction · 0.85
save_infoFunction · 0.85

Tested by

no test coverage detected