r"""Return a vertex list of the neighbors of the vertex ``v_idx``. Args: ``v_idx`` (``int``): The index of the vertex.
(self, v_idx: int)
| 344 | self._clear_cache() |
| 345 | |
| 346 | def nbr_v(self, v_idx: int) -> Tuple[List[int], List[float]]: |
| 347 | r"""Return a vertex list of the neighbors of the vertex ``v_idx``. |
| 348 | |
| 349 | Args: |
| 350 | ``v_idx`` (``int``): The index of the vertex. |
| 351 | """ |
| 352 | return self.N_v(v_idx).cpu().numpy().tolist() |
| 353 | |
| 354 | def N_v(self, v_idx: int) -> Tuple[List[int], List[float]]: |
| 355 | r"""Return the neighbors of the vertex ``v_idx`` with ``torch.Tensor`` format. |