Get local node IDs within the given partition. Parameters ---------- nids : tensor global node IDs partid : int partition ID ntype : str The node type Returns ------- tensor local node
(self, nids, partid, ntype)
| 395 | """ |
| 396 | |
| 397 | def nid2localnid(self, nids, partid, ntype): |
| 398 | """Get local node IDs within the given partition. |
| 399 | |
| 400 | Parameters |
| 401 | ---------- |
| 402 | nids : tensor |
| 403 | global node IDs |
| 404 | partid : int |
| 405 | partition ID |
| 406 | ntype : str |
| 407 | The node type |
| 408 | |
| 409 | Returns |
| 410 | ------- |
| 411 | tensor |
| 412 | local node IDs |
| 413 | """ |
| 414 | |
| 415 | def eid2localeid(self, eids, partid, etype): |
| 416 | """Get the local edge ids within the given partition. |
no outgoing calls