r"""Return the hypergraph incidence matrix with ``sparse matrix`` format.
(self)
| 562 | |
| 563 | @property |
| 564 | def H_v2e(self) -> torch.Tensor: |
| 565 | r"""Return the hypergraph incidence matrix with ``sparse matrix`` format.""" |
| 566 | if self.cache.get("H_v2e") is None: |
| 567 | _tmp = [self.H_v2e_of_group(name) for name in self.group_names] |
| 568 | self.cache["H_v2e"] = torch.cat(_tmp, dim=1) |
| 569 | return self.cache["H_v2e"] |
| 570 | |
| 571 | def H_v2e_of_group(self, group_name: str) -> torch.Tensor: |
| 572 | r"""Return the hypergraph incidence matrix with ``sparse matrix`` format in the specified hyperedge group. |
nothing calls this directly
no test coverage detected