(Not an answer; just a comment.)
It is a somewhat tangled graph. Here is a representation of $G(100)$:
![SqGraph100][1]
One can see $50+50=100=10^2$ at$50+71=121=11^2$ near the lower-right corner, $69+52=121=11^2$$84+85=169=13^2$ near the upper-right cornertop, $70+51=121=11^2$$82+62=144=12^2$, left midlevelnear the bottom, etc.
This $G(100)$ graph has diameter $5$. But $G(1000)$ has diameter $4$.