In my book, it's written that the following are equivalent. I don't understand why it is so.
- G is bipartite;
- G is 2-colourable;
- G does not contain any odd length cycles.
In my book, it's written that the following are equivalent. I don't understand why it is so.
If $G$ is bipartite with parts $V$ and $W$, color the vertices in $V$ red and the vertices in $W$ blue. Conversely, if $G$ is $2$-colorable, splitting the vertices by color gives a bipartition. This shows that the first two are equivalent.
If $G$ is bipartite with parts $V$ and $W$, any path must alternate between vertices in $V$ and vertices in $W$. Suppose that you start at a vertex in $V$; then after an odd number of steps you must be in $W$, and after an even number of steps you must be back in $V$. In particular, to return to your starting point requires an even number of steps, and therefore $G$ has no odd cycles. For the converse see this question and its answer, or this answer.