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

Method clear

easygraph/classes/base.py:112–115  ·  view source on GitHub ↗

r"""Remove all hyperedges and caches from the hypergraph.

(self)

Source from the content-addressed store, hash-verified

110 r"""Draw the structure."""
111
112 def clear(self):
113 r"""Remove all hyperedges and caches from the hypergraph."""
114 self._clear_raw()
115 self._clear_cache()
116
117 def _clear_raw(self):
118 self._v_weight = None

Callers 15

__init__Method · 0.95
KruskalFunction · 0.45
remove_selfloopMethod · 0.45
test_clearFunction · 0.45
test_remove_hyperedgesFunction · 0.45
_linear_thresholdFunction · 0.45
pick_candidatesFunction · 0.45
dinic_bfsFunction · 0.45
dinic_flowFunction · 0.45
max_flowFunction · 0.45

Calls 2

_clear_rawMethod · 0.95
_clear_cacheMethod · 0.95

Tested by 2

test_clearFunction · 0.36
test_remove_hyperedgesFunction · 0.36