MCPcopy Index your code
hub / github.com/dmlc/dgl / local_access

Function local_access

python/dgl/distributed/graph_services.py:1000–1026  ·  view source on GitHub ↗
(local_g, partition_book, local_nids)

Source from the content-addressed store, hash-verified

998 )
999
1000 def local_access(local_g, partition_book, local_nids):
1001 etype_offset = gpb.local_etype_offset
1002 # See NOTE 1
1003 if prob is not None and (not use_graphbolt):
1004 _prob = [
1005 (
1006 g.edges[etype].data[prob].local_partition
1007 if prob in g.edges[etype].data
1008 else None
1009 )
1010 for etype in g.canonical_etypes
1011 ]
1012 else:
1013 _prob = prob
1014 return _sample_etype_neighbors(
1015 use_graphbolt,
1016 local_g,
1017 partition_book,
1018 local_nids,
1019 fanout,
1020 edge_dir=edge_dir,
1021 prob=_prob,
1022 exclude_edges=None,
1023 replace=replace,
1024 etype_offset=etype_offset,
1025 etype_sorted=etype_sorted,
1026 )
1027
1028 frontier = _distributed_access(
1029 g, nodes, issue_remote_req, local_access, exclude_edges=exclude_edges

Callers 3

_distributed_accessFunction · 0.85
_distributed_edge_accessFunction · 0.85

Calls 6

_sample_etype_neighborsFunction · 0.85
_find_edgesFunction · 0.85
_in_subgraphFunction · 0.85
_in_degreesFunction · 0.85
_out_degreesFunction · 0.85
_sample_neighborsFunction · 0.70

Tested by

no test coverage detected