I'm having some trouble making sense of this question in my Homework.
If G is a simple graph, then the complement, G′, is obtained as follows. If the vertices a and b are joined by an edge in G then there is no such edge in G′, while if there is no edge between a and b in G, then there is an edge joining these vertices in G′. Show that for any simple graph G one of G and G′ is connected.
If you can shed any light that would be extremely helpful.
Let $G$ be a simple graph. We want to show either $G$ or $G'$ is connected.
If $G$ itself is connected, you're done, so we assume that $G$ is not connected (this is a common way of approaching `$A$ or $B$' type proofs, you assume not $A$ and then try prove $B$ from that assumption).
If $G$ is not connected, then it has at least two connected components. So we can divide $G$ into two pieces, $H$ and $K$, such that there are no edges from $H$ to $K$.
Now from this setup, see if you can show that for any two vertices $u$ and $v$ of $G$, you can find a $u-v$ path in the complement $G'$. Click the spoiler below for a hint.
For a full proof, click the next spoiler: