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

Method partid2eids

python/dgl/distributed/graph_partition_book.py:381–395  ·  view source on GitHub ↗

From partition id to global edge IDs Parameters ---------- partid : int partition id etype : str or (str, str, str) The edge type Returns ------- tensor edge IDs

(self, partid, etype)

Source from the content-addressed store, hash-verified

379 """
380
381 def partid2eids(self, partid, etype):
382 """From partition id to global edge IDs
383
384 Parameters
385 ----------
386 partid : int
387 partition id
388 etype : str or (str, str, str)
389 The edge type
390
391 Returns
392 -------
393 tensor
394 edge IDs
395 """
396
397 def nid2localnid(self, nids, partid, ntype):
398 """Get local node IDs within the given partition.

Callers 7

edge_splitFunction · 0.45
get_part_sizeMethod · 0.45
_get_local_idsMethod · 0.45
check_partitionFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by 3

check_partitionFunction · 0.36