code: def delete_set(self, x):
          
          if x not in self._parents:
              return
          members = list(self.members(x))
          for v in members:
              del self._parents[v]
              del self._weights[v]
              del self._prev_next[v]
              del self._min_values[v]
docs: Removes the equivalence class containing `x`.