Let $G(V,E)$ be an un-directed, un-connected graph. Prove that $\bar G$ is connected, and that its diameter is at most $2$.
I've started by writing myself some guidelines:
- Two vertices will be neighbors in $\bar G$ if and only if they weren't neighbors at $G$.
- Undirected means that exists $u,v\in V$ so there's no track between them.
So I need to prove:
- $\bar G$ connected
- $\bar G$ diameter is 2 at most.
I guess that for (1) i need to prove that for every $u,v\in V$, I can find a track between them. Or, In some way prove that there are at least $n-1$ edges. And for (2) i just don't know.
So i'm pretty much stuck, I can see the logic behind it [been drawing some examples], But I can't see how can I 'merge' between looking at a vertex in $G$ and then in $\bar G$, I know this might be pretty easy. But i just can't 'see' it.
Thanks.