Solitary waves and yrast states in Bose-Einstein condensed gases of atoms