UVa 10004 - Bicoloring

Link
http://icpcres.ecs.baylor.edu/onlinejudge/external/100/10004.htm

Summary
Determine whether a given graph is bicolorable.

Explanation
Bicolorable graphs are equivalent to bipartite graphs, and so the problem boils down to finding whether a given graph is bipartite. For more info on bipartite graphs, see here