Lots of studies in the animal kingdom on group dynamics in animal groups and colonies.
Anything on human societies especially housing complexes and neighbours in western first world societies?
Does familiarity between neighbours breed contempt? Which is better advice to follow? Keep your neighbours at a distance or try and be best friends forever? Are there any social science studies which can explain relationships between neighbours?