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

Method v2e_dst_of_group

easygraph/classes/hypergraph.py:664–673  ·  view source on GitHub ↗

r"""Return the destination hyperedge index vector :math:`\overrightarrow{v2e}_{dst}` of the connections (vertices point to hyperedges) in the specified hyperedge group. Args: ``group_name`` (``str``): The name of the specified hyperedge group.

(self, group_name: str)

Source from the content-addressed store, hash-verified

662 return self.H_T._indices()[0].clone()
663
664 def v2e_dst_of_group(self, group_name: str) -> torch.Tensor:
665 r"""Return the destination hyperedge index vector :math:`\overrightarrow{v2e}_{dst}` of the connections (vertices point to hyperedges) in the specified hyperedge group.
666
667 Args:
668 ``group_name`` (``str``): The name of the specified hyperedge group.
669 """
670 assert (
671 group_name in self.group_names
672 ), f"The specified {group_name} is not in existing hyperedge groups."
673 return self.H_T_of_group(group_name)._indices()[0].clone()
674
675 @property
676 def v2e_weight(self) -> torch.Tensor:

Callers 1

test_v2e_index_groupFunction · 0.80

Calls 2

H_T_of_groupMethod · 0.95
cloneMethod · 0.45

Tested by 1

test_v2e_index_groupFunction · 0.64