Swarm Control for Self-Organized System With Fixed and Switching Topology