Flexible aquatic vegetation in rivers