Resource defence theory. Ecological factors such as number and distribution of resources and competitors determine whether an individual guards a resource. Above the lower threshold, individuals aggressively defend space around a resource. Above the upper threshold, they cease to defend a resource. Graph based on  with the social structure that emerges under each condition added by the current authors. See text for detailed description.