Rigidity-Preserving Team Partitions in Multiagent Networks