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

Method update

python/graphscope/nx/classes/dict_factory.py:41–44  ·  view source on GitHub ↗
(self, nodes_to_update)

Source from the content-addressed store, hash-verified

39 return key in self._cache or key in self._graph
40
41 def update(self, nodes_to_update):
42 # N.B: for forward use networkx.relabel_nodes
43 self._graph.add_nodes_from(nodes_to_update)
44 self._cache.clear_node_attr_cache()
45
46 def __len__(self):
47 return len(self._cache)

Callers 2

updateMethod · 0.45
updateMethod · 0.45

Calls 2

add_nodes_fromMethod · 0.80
clear_node_attr_cacheMethod · 0.80

Tested by

no test coverage detected