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

Method e2v_weight_of_group

easygraph/classes/hypergraph.py:732–741  ·  view source on GitHub ↗

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

730 return self.H._values().clone()
731
732 def e2v_weight_of_group(self, group_name: str) -> torch.Tensor:
733 r"""Return the weight vector :math:`\overrightarrow{e2v}_{weight}` of the connections (hyperedges point to vertices) in the specified hyperedge group.
734
735 Args:
736 ``group_name`` (``str``): The name of the specified hyperedge group.
737 """
738 assert (
739 group_name in self.group_names
740 ), f"The specified {group_name} is not in existing hyperedge groups."
741 return self.H_of_group(group_name)._values().clone()
742
743 @property
744 def H(self) -> torch.Tensor:

Callers

nothing calls this directly

Calls 2

H_of_groupMethod · 0.95
cloneMethod · 0.45

Tested by

no test coverage detected