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

Method H_T_of_group

easygraph/classes/hypergraph.py:772–783  ·  view source on GitHub ↗

r"""Return the transpose of the hypergraph incidence matrix :math:`\mathbf{H}^\top` of the specified hyperedge group with ``torch.Tensor`` format. Args: ``group_name`` (``str``): The name of the specified hyperedge group.

(self, group_name: str)

Source from the content-addressed store, hash-verified

770 return self.cache["H_T"]
771
772 def H_T_of_group(self, group_name: str) -> torch.Tensor:
773 r"""Return the transpose of the hypergraph incidence matrix :math:`\mathbf{H}^\top` of the specified hyperedge group with ``torch.Tensor`` format.
774
775 Args:
776 ``group_name`` (``str``): The name of the specified hyperedge group.
777 """
778 assert (
779 group_name in self.group_names
780 ), f"The specified {group_name} is not in existing hyperedge groups."
781 if self.group_cache[group_name].get("H_T") is None:
782 self.group_cache[group_name]["H_T"] = self.H_of_group(group_name).t()
783 return self.group_cache[group_name]["H_T"]
784
785 @property
786 def W_e(self) -> torch.Tensor:

Callers 9

v2e_src_of_groupMethod · 0.95
v2e_dst_of_groupMethod · 0.95
v2e_weight_of_groupMethod · 0.95
D_e_of_groupMethod · 0.95
N_v_of_groupMethod · 0.95
L_rw_of_groupMethod · 0.95
L_HGNN_of_groupMethod · 0.95
test_H_T_groupFunction · 0.80

Calls 1

H_of_groupMethod · 0.95

Tested by 1

test_H_T_groupFunction · 0.64