BFS/DFS-Based Detection - Bipartite Graphs | OneNoughtOne