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

Method nbr_e

easygraph/classes/hypergraph.py:549–555  ·  view source on GitHub ↗

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

(self, v_idx: int)

Source from the content-addressed store, hash-verified

547 return self.D_e_of_group(group_name)._values().cpu().view(-1).numpy().tolist()
548
549 def nbr_e(self, v_idx: int) -> List[int]:
550 r"""Return the neighbor hyperedge list of the specified vertex.
551
552 Args:
553 ``v_idx`` (``int``): The index of the vertex.
554 """
555 return self.N_e(v_idx).cpu().numpy().tolist()
556
557 def nbr_e_of_group(self, v_idx: int, group_name: str) -> List[int]:
558 r"""Return the neighbor hyperedge list of the specified vertex of the specified hyperedge group.

Callers 2

test_nbrFunction · 0.80
test_nbr_groupFunction · 0.80

Calls 1

N_eMethod · 0.95

Tested by 2

test_nbrFunction · 0.64
test_nbr_groupFunction · 0.64