Skip to content

Commit eadfff6

Browse files
1 parent 6a2a920 commit eadfff6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: graphs/check_bipartite_graph_all.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
from queue import Queue
1818

1919

20-
def check_bipartite(graph):
20+
def check_bipartite(graph) -> bool:
2121
queue = Queue()
2222
visited = [False] * len(graph)
2323
color = [-1] * len(graph)
2424

25-
def bfs():
25+
def bfs() -> bool:
2626
while not queue.empty():
2727
u = queue.get()
2828
visited[u] = True

0 commit comments

Comments
 (0)