The diameter of graph is the maximum eccentricity of any vertex in .

The diameter of a disconnected graph equals .