On some weakly bipartite graphs