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

Method nbr_v

easygraph/classes/hypergraph.py:569–575  ·  view source on GitHub ↗

r"""Return the neighbor vertex list of the specified hyperedge. Args: ``e_idx`` (``int``): The index of the hyperedge.

(self, e_idx: int)

Source from the content-addressed store, hash-verified

567 return self.N_e_of_group(v_idx, group_name).cpu().numpy().tolist()
568
569 def nbr_v(self, e_idx: int) -> List[int]:
570 r"""Return the neighbor vertex list of the specified hyperedge.
571
572 Args:
573 ``e_idx`` (``int``): The index of the hyperedge.
574 """
575 return self.N_v(e_idx).cpu().numpy().tolist()
576
577 def nbr_v_of_group(self, e_idx: int, group_name: str) -> List[int]:
578 r"""Return the neighbor vertex list of the specified hyperedge of the specified hyperedge group.

Callers

nothing calls this directly

Calls 1

N_vMethod · 0.95

Tested by

no test coverage detected