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

Method align_succ_cache

python/graphscope/nx/classes/cache.py:128–139  ·  view source on GitHub ↗

Check and align the succ neighbor cache with node id cache

(self)

Source from the content-addressed store, hash-verified

126 return self.node_attr_align
127
128 def align_succ_cache(self):
129 """Check and align the succ neighbor cache with node id cache"""
130 if self.enable_iter_cache and self.succ_align is False:
131 start_gid, self.succ_cache = self.futures["succ"].result()
132 if start_gid == self.iter_pre_gid:
133 if self.iter_gid != self.iter_pre_gid:
134 self._async_fetch_succ_cache(self.iter_gid)
135 self.succ_align = True
136 else:
137 self._async_fetch_succ_cache(self.iter_pre_gid)
138
139 return self.succ_align
140
141 def align_succ_attr_cache(self):
142 """Check and align the succ neighbor attr cache with node id cache"""

Callers 1

align_neighbor_cacheMethod · 0.95

Calls 1

Tested by

no test coverage detected