The relationship between personality and group structure