code: def _particles(self, include_ports=False):
          
          for child in self.successors():
              if not child.children:
                  if include_ports or not child.port_particle:
                      yield child
docs: Return all Particles of the Compound.