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

Method e2v_src_of_group

easygraph/classes/hypergraph.py:698–707  ·  view source on GitHub ↗

r"""Return the source hyperedge index vector :math:`\overrightarrow{e2v}_{src}` 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

696 return self.H._indices()[1].clone()
697
698 def e2v_src_of_group(self, group_name: str) -> torch.Tensor:
699 r"""Return the source hyperedge index vector :math:`\overrightarrow{e2v}_{src}` of the connections (hyperedges point to vertices) in the specified hyperedge group.
700
701 Args:
702 ``group_name`` (``str``): The name of the specified hyperedge group.
703 """
704 assert (
705 group_name in self.group_names
706 ), f"The specified {group_name} is not in existing hyperedge groups."
707 return self.H_of_group(group_name)._indices()[1].clone()
708
709 @property
710 def e2v_dst(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