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

Method v2e_src

easygraph/classes/hypergraph.py:642–645  ·  view source on GitHub ↗

r"""Return the source vertex index vector :math:`\overrightarrow{v2e}_{src}` of the connections (vertices point to hyperedges) in the hypergraph.

(self)

Source from the content-addressed store, hash-verified

640
641 @property
642 def v2e_src(self) -> torch.Tensor:
643 r"""Return the source vertex index vector :math:`\overrightarrow{v2e}_{src}` of the connections (vertices point to hyperedges) in the hypergraph.
644 """
645 return self.H_T._indices()[1].clone()
646
647 def v2e_src_of_group(self, group_name: str) -> torch.Tensor:
648 r"""Return the source vertex index vector :math:`\overrightarrow{v2e}_{src}` of the connections (vertices point to hyperedges) in the specified hyperedge group.

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected