r"""Return a copy of the hypergraph.
(self)
| 139 | return super().clear() |
| 140 | |
| 141 | def clone(self) -> "Hypergraph": |
| 142 | r"""Return a copy of the hypergraph.""" |
| 143 | hg = Hypergraph(self.num_v, device=self.device) |
| 144 | hg._raw_groups = deepcopy(self._raw_groups) |
| 145 | hg.cache = deepcopy(self.cache) |
| 146 | hg.group_cache = deepcopy(self.group_cache) |
| 147 | return hg |
| 148 | |
| 149 | def to(self, device: torch.device): |
| 150 | r"""Move the hypergraph to the specified device. |
no test coverage detected