MCPcopy
hub / github.com/dmlc/dgl / __delitem__

Method __delitem__

python/dgl/view.py:229–236  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

227 self._graph._set_e_repr(self._etid, self._edges, {key: val})
228
229 def __delitem__(self, key):
230 if isinstance(self._etype, list):
231 for etid in self._etid:
232 if self._graph._get_e_repr(etid, ALL).get(key, None) is None:
233 continue
234 self._graph._pop_e_repr(etid, key)
235 else:
236 self._graph._pop_e_repr(self._etid, key)
237
238 def _transpose(self, as_dict=False):
239 if isinstance(self._etype, list):

Callers

nothing calls this directly

Calls 3

_get_e_reprMethod · 0.80
_pop_e_reprMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected