Let $G$ be a graph which contains a complete subgraph $H$. Can $G$ be bipartite

graph theory

Let $G$ be a graph which contains a complete subgraph $H$.
Can $G$ be bipartite?

I found the answer to be NO.

In order for $G$ to be bipartite we must partition the vertex set of $G$ into two components $A,B$ such that no vertices in $A,B$ are adjacent among themselves.

If the graph $G$ contains $H$ as a complete subgraph its not possible to do so.

Is my logic correct?

Kindly help.

Best Answer

Yes, your argument is valid for $K_n$ with $n \ge 3$. For $K_1$ we can construct a graph with two $K_1$ components, which is bipartite. $K_2$ itself is already bipartite so argument becomes valid when we consider larger complete graphs. As an alternative way, you can prove the following argument by induction in order to prove your argument:

For $n \ge 3$, $K_n$ has an odd cycle.

since a graph is bipartite if and only if it doesn't contain an odd cycle.

Related Question