Python:实现DFS判断是否是二分图Bipartite算法 def check_bipartite_dfs(graph): visited = [False] * len(graph) color = [-1