Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/dmlc/dgl
/ clear_cache
Method
clear_cache
python/dgl/graph_index.py:123–125 ·
view source on GitHub ↗
Clear the cached graph structures.
(self)
Source
from the content-addressed store, hash-verified
121
self.clear_cache()
122
123
def
clear_cache(self):
124
""
"Clear the cached graph structures."
""
125
self._cache.clear()
126
127
def
is_multigraph(self):
128
""
"Return whether the graph is a multigraph
Callers
8
add_nodes
Method · 0.95
add_edge
Method · 0.95
add_edges
Method · 0.95
clear
Method · 0.95
readonly
Method · 0.95
add_nodes
Method · 0.45
add_edge
Method · 0.45
add_edges
Method · 0.45
Calls
1
clear
Method · 0.45
Tested by
no test coverage detected