I have been trying to solve this question for a while now and the deadline is almost over so I have no option but to seek help.

We have an undirected graph of edges and we know that the degree of each edge is the object is to prove that the diameter is . How can I do that?

EDIT:

we have vertexes and the degree of each vertex is