Different definitions of stability around the community matrix