This D&D 3.5 question touches on this subject. Recently in a Pathfinder 1e game, it came to my attention that Paizo removed the second line clarifying that swarms were shapeable 10' creatures.
I felt all swarms, including single 10' square swarms, were still shapeable so long as they are either a Line, Sqaure, or Diagonal as shown in this diagram:
Has there been a clarification that swarms are only shapeable if there are more than one swarm in Pathfinder?
I've included excerpts from the 3.5 rules and the Pathfinder rules on swarms.
The 3.5 rules were:
Larger swarms are represented by multiples of single swarms. A large swarm is completely shapeable, though it usually remains contiguous.
...
Unlike other creatures with a 10-foot space, a swarm is shapeable. It can occupy any four contiguous squares, and it can squeeze through any space large enough to contain one of its component creatures.
Larger swarms are represented by multiples of single swarms. The area occupied by a large swarm is completely shapeable, though the swarm usually remains in contiguous squares.