Alliances And Struggles In The Miniature Ecosystem Of A Socially Flexible Bee