(local_g, partition_book, local_nids)
| 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 |
no test coverage detected