code: def _increment_rigid_ids(self, increment):
          
          for particle in self.particles():
              if particle.rigid_id is not None:
                  particle.rigid_id += increment
docs: Increment the rigid_id of all rigid Particles in a Compound
  
          Adds `increment` to the rigid_id of all Particles in `self` that
          already have an integer rigid_id.