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

Method v2e_weight_of_group

easygraph/classes/hypergraph.py:681–690  ·  view source on GitHub ↗

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

679 return self.H_T._values().clone()
680
681 def v2e_weight_of_group(self, group_name: str) -> torch.Tensor:
682 r"""Return the weight vector :math:`\overrightarrow{v2e}_{weight}` of the connections (vertices point to hyperedges) in the specified hyperedge group.
683
684 Args:
685 ``group_name`` (``str``): The name of the specified hyperedge group.
686 """
687 assert (
688 group_name in self.group_names
689 ), f"The specified {group_name} is not in existing hyperedge groups."
690 return self.H_T_of_group(group_name)._values().clone()
691
692 @property
693 def e2v_src(self) -> torch.Tensor:

Callers 1

Calls 2

H_T_of_groupMethod · 0.95
cloneMethod · 0.45

Tested by

no test coverage detected