MCPcopy
hub / github.com/dmlc/dgl / nid2localnid

Method nid2localnid

python/dgl/distributed/graph_partition_book.py:397–413  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 12

verify_graph_featsFunction · 0.45
_sample_neighbors_dglFunction · 0.45
_in_degreesFunction · 0.45
_out_degreesFunction · 0.45
_in_subgraphFunction · 0.45
to_localMethod · 0.45
verify_graph_featsFunction · 0.45
check_partitionFunction · 0.45

Calls

no outgoing calls