Question DSA-GRAPH-0019
HardHow can you check whether an undirected graph is bipartite?
- A.
Try to 2-colour it with BFS or DFS; it is bipartite if no edge joins two vertices of the same colour
- B.
Check whether it is a tree
- C.
Sign up free to see the answer and a step-by-step explanation.