[Math] Draw all connected graphs of order $5$ in which the distance between every two distinct vertices is odd.

graph theory

I'm working in the following graph theory excercise:

Draw all connected graphs of order $5$ in which the distance between every two distinct vertices is odd. Explain why you know that you have drawn all such graphs.

Is there another graph different to the complete graph of order $5$? Thanks in advance for any hint or help.

Best Answer

Hint: If $d(u_0,v)=n\gt0$ then $u_0$ has a neighbor $u_1$ such that $d(u_1,v)=n-1$.