r"""Return the hyperedge weight matrix of the specified hyperedge group. Args: ``group_name`` (``str``): The name of the specified hyperedge group.
(self, group_name: str)
| 534 | return self.cache["W_e"] |
| 535 | |
| 536 | def W_e_of_group(self, group_name: str) -> torch.Tensor: |
| 537 | r"""Return the hyperedge weight matrix of the specified hyperedge group. |
| 538 | |
| 539 | Args: |
| 540 | ``group_name`` (``str``): The name of the specified hyperedge group. |
| 541 | """ |
| 542 | assert ( |
| 543 | group_name in self.group_names |
| 544 | ), f"The specified {group_name} is not in existing hyperedge groups." |
| 545 | if self.group_cache[group_name]["W_e"] is None: |
| 546 | self.group_cache[group_name]["W_e"] = self._fetch_W_of_group(group_name) |
| 547 | return self.group_cache[group_name]["W_e"] |
| 548 | |
| 549 | @property |
| 550 | @abc.abstractmethod |