Let $ G $ be a group with a partition into conjugacy classes:
$$
G = [g_1] \sqcup [g_2] \sqcup \dots \sqcup [g_r],
$$
where the conjugacy class of an element $ a $ is defined as
$$
[a] = \{g a g^{-1} \mid g \in G\}.
$$
Suppose that for all $ i, j \in \{1, 2, \dots, r\} $, the elements $ g_i $ and $ g_j $ commute, i.e.,
$$
g_i g_j = g_j g_i.
$$
Does it necessarily follow that $ G $ is generated by these elements? That is, do we have
$$
G = \langle g_1, g_2, \dots, g_r \rangle?
$$
I attempted to prove this by considering an arbitrary element $ x_1 \in [g_{i_1}] $, which can be written as $ x_1 = x_2 g_{i_1} x_2^{-1} $ for some $ x_2 \in G $, and iterating this process. However, this approach does not seem to lead to a conclusive result.
How can I prove or disprove this statement? Any direction or a counterexample would be appreciated.