MCPcopy Create free account
hub / github.com/easy-graph/Easy-Graph / H_v2e

Method H_v2e

easygraph/classes/base.py:564–569  ·  view source on GitHub ↗

r"""Return the hypergraph incidence matrix with ``sparse matrix`` format.

(self)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 1

H_v2e_of_groupMethod · 0.95

Tested by

no test coverage detected