(self)
| 467 | save_info(str(self.info_path), info_dict) |
| 468 | |
| 469 | def load(self): |
| 470 | graphs, label_dict = load_graphs(str(self.graph_path)) |
| 471 | info_dict = load_info(str(self.info_path)) |
| 472 | |
| 473 | self.graph_lists = graphs |
| 474 | self.graph_labels = label_dict["labels"] |
| 475 | self.max_num_node = info_dict["max_num_node"] |
| 476 | self.num_labels = info_dict["num_labels"] |
| 477 | |
| 478 | def has_cache(self): |
| 479 | if os.path.exists(self.graph_path) and os.path.exists(self.info_path): |