From global node IDs to partition IDs Parameters ---------- nids : tensor global node IDs ntype : str The node type Returns ------- tensor partition IDs
(self, nids, ntype)
| 331 | """ |
| 332 | |
| 333 | def nid2partid(self, nids, ntype): |
| 334 | """From global node IDs to partition IDs |
| 335 | |
| 336 | Parameters |
| 337 | ---------- |
| 338 | nids : tensor |
| 339 | global node IDs |
| 340 | ntype : str |
| 341 | The node type |
| 342 | |
| 343 | Returns |
| 344 | ------- |
| 345 | tensor |
| 346 | partition IDs |
| 347 | """ |
| 348 | |
| 349 | def eid2partid(self, eids, etype): |
| 350 | """From global edge IDs to partition IDs |
no outgoing calls