Diameter of a Graph

Diameter of a Graph can be calculated like this:

diam(G)=max{d(u,v)u,vV(G)}\operatorname{diam}(G)=\max \{d(u, v) \mid u, v \in V(G)\}