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

Method save

python/dgl/data/knowledge_graph.py:172–178  ·  view source on GitHub ↗

save the graph list and the labels

(self)

Source from the content-addressed store, hash-verified

170 return 1
171
172 def save(self):
173 """save the graph list and the labels"""
174 save_graphs(str(self.graph_path), self._g)
175 save_info(
176 str(self.info_path),
177 {"num_nodes": self.num_nodes, "num_rels": self.num_rels},
178 )
179
180 def load(self):
181 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