code: def replace_elements(self, inds, new_submesh, component):
          
          self._dict[component] = np.hstack([self._dict[component][~inds], new_submesh])
docs: TODO: add documentation
          TODO: remove this method???