MCPcopy Create free account
hub / github.com/easy-graph/Easy-Graph / _clear_cache

Method _clear_cache

easygraph/classes/base.py:121–126  ·  view source on GitHub ↗
(self, group_name: Optional[str] = None)

Source from the content-addressed store, hash-verified

119 self._raw_groups = {}
120
121 def _clear_cache(self, group_name: Optional[str] = None):
122 self.cache = {}
123 if group_name is None:
124 self.group_cache = defaultdict(dict)
125 else:
126 self.group_cache.pop(group_name, None)
127
128 @abc.abstractmethod
129 def clone(self) -> "BaseHypergraph":

Callers 4

clearMethod · 0.95
add_hyperedgesMethod · 0.95
remove_hyperedgesMethod · 0.95
v_weightMethod · 0.95

Calls 1

popMethod · 0.80

Tested by

no test coverage detected