Bipartite graphs detection added.