Clear the cache of a graph (currently stores converted graphs). Caching is controlled via ``nx.config.cache_converted_graphs`` configuration.
(G)
| 643 | |
| 644 | |
| 645 | def _clear_cache(G): |
| 646 | """Clear the cache of a graph (currently stores converted graphs). |
| 647 | |
| 648 | Caching is controlled via ``nx.config.cache_converted_graphs`` configuration. |
| 649 | """ |
| 650 | if cache := getattr(G, "__networkx_cache__", None): |
| 651 | cache.clear() |
| 652 | |
| 653 | |
| 654 | def check_create_using(create_using, *, directed=None, multigraph=None, default=None): |
nothing calls this directly
no test coverage detected
searching dependent graphs…