跳到内容

它不会检查图在数学意义上是否是二分图。请使用 bipartite_mapping() 进行检查。

用法

is_bipartite(graph)

参数

graph

输入图