r"""Return the neighbors of the vertex ``v_idx`` with ``torch.Tensor`` format. Args: ``v_idx`` (``int``): The index of the vertex.
(self, v_idx: int)
| 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. |
| 356 | |
| 357 | Args: |
| 358 | ``v_idx`` (``int``): The index of the vertex. |
| 359 | """ |
| 360 | sub_v_set = self.A[v_idx]._indices()[0].clone() |
| 361 | return sub_v_set |
| 362 | |
| 363 | def clone(self): |
| 364 | r"""Clone the graph.""" |