What is a swarm in Pokemon?

in Pokemon diamond, pearl and platinum there are swarms. this means there are lots of a certain kind of Pokemon appearing in an area they don't usually appear in for a limited amount of time