MCPcopy Create free account
hub / github.com/alibaba/GraphScope / _get_pred_attr_cache

Method _get_pred_attr_cache

python/graphscope/nx/classes/cache.py:386–392  ·  view source on GitHub ↗
(self, gid)

Source from the content-addressed store, hash-verified

384 return gid, succ_attr_cache
385
386 def _get_pred_attr_cache(self, gid):
387 op = dag_utils.report_graph(self._graph, types_pb2.PRED_ATTR_BY_GID, gid=gid)
388 archive = op.eval()
389 gid = archive.get_uint64()
390 fp = io.BytesIO(archive.get_bytes())
391 pred_attr_cache = msgpack.load(fp, use_list=False)
392 return gid, pred_attr_cache
393
394
395def get_neighbors(graph, n, pred=False):

Callers

nothing calls this directly

Calls 4

get_uint64Method · 0.80
evalMethod · 0.45
get_bytesMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected