Let G be an abelian group of order n=\prod_{i=1}^kp_i^{t_i}. Then G\cong \prod_{i=1}^kS_i, where each S_i is the Sylow subgroup of order p_i^{t_i}. By the fundamental theorem of finite abelian groups, each S_i can be written as
S_i\cong \prod_{j=1}^{n_i}\mathbb Z_{p_i^{r_{ij}}}, \quad \text{such that}
\quad
\sum_{j=1}^{n_i}r_{ij}=t_i.
Moreover, every subgroup H of G decomposes as H=\prod_{i=1}^kH_i, where H_i is a subgroup of S_i for each i. We divide the proof into the following three cases.
Case 1. k\geq 3: Let H_1=S_1\times 0\times\cdots\times 0 and H_2=0\times S_2\times 0\times\cdots\times 0. Then H_1,H_2\in V(\mathcal{G}(G)). Since H_1\nsim H_2, we have \operatorname{d}(H_1,H_2)\geq 2. We next show that \operatorname{d}(H_1,H_2)\geq 3. Suppose, for contradiction, that there exists a proper subgroup T=\prod_{i=1}^kT_i of G such that H_1\sim T\sim H_2, where T_i is a subgroup of G_i for i\in [k]. Since \langle H_1,T\rangle=G, we must have T_i=S_i for all i\in \{2,\dots,k\}. Similarly, from \langle T,H_2\rangle=G, it follows that T_1=S_1. Thus T=G, contradicting the assumption that T is a proper subgroup of G. Hence \operatorname{d}(S_1, S_2)\geq 3. By Theorem 3.3, we have \operatorname{diam}(\mathcal{G}(G))=3.
Case 2. k=2: In this case, G\cong S_1\times S_2, where S_1=\prod_{j=1}^{n_1}\mathbb{Z}_{{p_1}^{t_{1j}}} and S_2=\prod_{j=1}^{n_2}\mathbb{Z}_{{p_2}^{t_{2j}}}. First, suppose that n_1=n_2=1. If t_{11}=t_{21}=1, then G\cong \mathbb{Z}_{p_1}\times \mathbb{Z}_{p_2}. By Theorem 3.4, \operatorname{diam}(\mathcal{G}(G))=1.
Now suppose that t_{i1}\geq 2 for some i\in[2]. Then \mathcal{M}(G)=\{m_1=\langle p_1\rangle \times \mathbb{Z}_{p_2}^{t_{21}}, m_2=\mathbb{Z}_{p_1}^{t_{11}}\times \langle p_2\rangle \}. Therefore, \mathcal{G(G)} is a complete bipartite graph with bipartition V_1=\{H\in V(\mathcal{G}(G)): H\leq m_1,\ H\nleq m_2\} and V_2=\{H\in V(\mathcal{G}(G)): H\leq m_2,\ H\nleq m_1\}. Hence \operatorname{diam}(\mathcal{G}(G))=2.
Finally, suppose that n_i\geq 2 for some i\in[2]. Without loss of generality, assume that n_1\geq 2. Let H_1=T_1\times 0 and H_2=0\times S_2 be vertices of V(\mathcal{G}(G)), where T_1 is a proper subgroup of S_1. Since H_1\nsim H_2, \operatorname{d}(H_1,H_2)\geq 2. Suppose, for contradiction, that \operatorname{d}(H_1,H_2)=2. Then there exists L=L_1\times L_2\in V(\mathcal{G}(G)) such that H_1\sim L\sim H_2, where L_i is a subgroup of S_i. Since H_1\sim L, we have L_2=S_2. On the other hand, H_2\sim L implies L_1=S_1. Therefore, L=S_1\times S_2=G, a contradiction. Consequently, \operatorname{d}(H_1,H_2)\geq 3. Since \operatorname{diam}(\mathcal{G}(G))\leq 3, we have \operatorname{diam}(\mathcal{G}(G))=3.
Case 3. k=1: In this case G\cong \prod_{i=1}^{n_1}\mathbb{Z}_{p^{t_{1i}}} and the maximal subgroups are of the form m_i=\mathbb{Z}_{p^{t_{11}}}\times \dots \times \langle p\rangle \times \dots \mathbb{Z}_{p^{t_{1{n_1}}}}. Therefore, \Phi(G)=\langle p\rangle\times \langle p\rangle\times \dots \times \langle p\rangle. Now, if n_1=1, then G has a unique maximal subgroup, and hence \mathcal{G}(G) is a null graph. Thus, assume that n_1\geq 2.
If n_1=2 and t_{11}=t_{12}=1, then G\cong \mathbb Z_p\times\mathbb Z_p and Theorem 3.4 gives \operatorname{diam}(\mathcal{G}(G))=1.
Now suppose that either n_1\geq3, or n_1=2 and t_{11}t_{12}\neq1. By Theorem 3.4, \operatorname{diam}(\mathcal{G}(G))\geq2. Let S_1, S_2\in V(\mathcal{G}(G)) be such that S_1\nsim S_2. Since S_1,S_2\nsubseteq\Phi(G), choose x=(x_1,\ldots,x_{n_1})\in S_1\setminus\Phi(G) and y=(y_1,\ldots,y_{n_1})\in S_2\setminus\Phi(G). Thus, at least one coordinate of each of x and y is not divisible by p. If there exists an index r such that p\nmid x_r and p\nmid y_r, define \varphi:G\longrightarrow\mathbb Z_p by \varphi((a_i)):=a_r\pmod p. Then \varphi(x)\neq 0 and \varphi(y)\neq 0. Otherwise, choose indices r and s such that p\nmid x_r and p\nmid y_s,. Since no coordinate is simultaneously nonzero modulo p for both x and y, we have p\mid y_r and p\mid x_s. Define \varphi :G\longrightarrow\mathbb Z_p by \varphi((a_i))=a_r+a_s\pmod p. Then again \varphi(x)\neq 0 and \varphi(y)\neq 0. In either case, let m=\ker\varphi. Since \varphi is surjective onto \mathbb Z_p, m is a maximal subgroup of G. Moreover, S_1\nsubseteq m and S_2\nsubseteq m. Thus S_1\sim m\sim S_2. Therefore every pair of nonadjacent vertices of \mathcal{G}(G) is at distance 2, and so \operatorname{diam}(\mathcal{G}(G))=2.