In the example, the scientist 4 has only 1 acquaintance, namely 6, while the problem description says every scientist has 2 or 3 acquaintances.
Btw, it's strange you didn't make this problem a challenge one, where the goal would be to maximize the number of workgroups... 