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

Method __delitem__

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

Source from the content-addressed store, hash-verified

99 self._graph._set_n_repr(self._ntid, self._nodes, {key: val})
100
101 def __delitem__(self, key):
102 if isinstance(self._ntype, list):
103 for ntid in self._ntid:
104 if self._graph._get_n_repr(ntid, ALL).get(key, None) is None:
105 continue
106 self._graph._pop_n_repr(ntid, key)
107 else:
108 self._graph._pop_n_repr(self._ntid, key)
109
110 def _transpose(self, as_dict=False):
111 if isinstance(self._ntype, list):

Callers

nothing calls this directly

Calls 3

_get_n_reprMethod · 0.80
_pop_n_reprMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected