Is Bipartite Graph

Asked at WeRide · Coding Questions · Difficulty: Medium

Given an undirected graph, determine if it is a **bipartite** graph. A graph is bipartite if and only if its vertex set can be divided into two disjoint sets U and V such that every edge connects a vertex in U to one in V.

Loading the problem…