(self, nodes_to_update)
| 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) |
no test coverage detected