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

Method e2v_dst_of_group

easygraph/classes/hypergraph.py:715–724  ·  view source on GitHub ↗

r"""Return the destination vertex index vector :math:`\overrightarrow{e2v}_{dst}` of the connections (hyperedges point to vertices) 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

713 return self.H._indices()[0].clone()
714
715 def e2v_dst_of_group(self, group_name: str) -> torch.Tensor:
716 r"""Return the destination vertex index vector :math:`\overrightarrow{e2v}_{dst}` of the connections (hyperedges point to vertices) in the specified hyperedge group.
717
718 Args:
719 ``group_name`` (``str``): The name of the specified hyperedge group.
720 """
721 assert (
722 group_name in self.group_names
723 ), f"The specified {group_name} is not in existing hyperedge groups."
724 return self.H_of_group(group_name)._indices()[0].clone()
725
726 @property
727 def e2v_weight(self) -> torch.Tensor:

Callers 1

test_e2v_index_groupFunction · 0.80

Calls 2

H_of_groupMethod · 0.95
cloneMethod · 0.45

Tested by 1

test_e2v_index_groupFunction · 0.64