Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
shivaparihar6119 committed Oct 19, 2023
1 parent 6a2a920 commit eadfff6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions graphs/check_bipartite_graph_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
from queue import Queue


def check_bipartite(graph):
def check_bipartite(graph) -> bool:
queue = Queue()
visited = [False] * len(graph)
color = [-1] * len(graph)

def bfs():
def bfs() -> bool:
while not queue.empty():
u = queue.get()
visited[u] = True
Expand Down

0 comments on commit eadfff6

Please sign in to comment.