(self)
| 593 | |
| 594 | @contextmanager |
| 595 | def local_graph(self): |
| 596 | self.__temp_adj_stack__.append(self._adj) |
| 597 | adj = copy.copy(self._adj) |
| 598 | others = [(key, val) for key, val in self.__dict__.items() if not key.startswith("__") and "adj" not in key] |
| 599 | self._adj = adj |
| 600 | yield |
| 601 | del adj |
| 602 | self._adj = self.__temp_adj_stack__.pop() |
| 603 | for key, val in others: |
| 604 | self[key] = val |
| 605 | |
| 606 | @property |
| 607 | def edge_index(self): |
no outgoing calls