rustworkx.is_bipartite#

is_bipartite(graph)[source]#

Determine if a given graph is bipartite

Parameters:

graph – The graph to check if it’s bipartite

Returns:

True if the graph is bipartite and False if it is not

Return type:

bool