there's a proof provided in harary's book but please help me write my own proof.
Proof: (=>)Suppose there's at least one odd cycle, Partitioning the set of vertices V into two distinct sets, we can let V1 be the set of vertices {v1,v3,v5,...} and V2: {v2,v4,v6,...}. Let C* be an arbitrary odd cycle. Since it's an odd cycle then the walk in that cycle would be v1v2v3...v(2n+1)v1 s.t. n is an integer. Therefore since v1 and v(2n+1) belong in the same partition, the graph containing the cycle is not bipartite.
(<=)Conversely, suppose the cycles are all even. Since the length of any cycle in the graph is even, it means there's an even number of edges and vertices for each cycle, then we can create a cycle such that the edges are denoted as v1v2, v2v3, v3v4,...,v(2n)v1. By partitioning any even cycle within the graph by their subscripts such that all even subscripted vertex are separated from the odd subscripted vertex, we have created a bipartite graph.
qed
please point out the errors in the proof. thank you!