Influence of topology on bacterial social interaction.