We associate to every finite group G a graph Gamma'(G) related to the conjugacy classes of G, and describe all finite groups G for which Gamma'(G) is connected and has diameter three. It is known that three is the maximal possible diameter for such graphs.