Skip to content

Commit d3b0563

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 6a2a920 commit d3b0563

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Diff for: graphs/check_bipartite_graph_all.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
2-
''' Check whether Graph is Bipartite or Not using BFS
1+
""" Check whether Graph is Bipartite or Not using BFS
32
https://www.geeksforgeeks.org/bipartite-graph/
43
Args:
54
graph: An adjacency list representing the graph.
@@ -13,7 +12,7 @@
1312
... )
1413
False
1514
>>> is_bipartite(defaultdict(list, {0: [1, 2], 1: [0, 2], 2: [0, 1]}))
16-
True'''
15+
True"""
1716
from queue import Queue
1817

1918

@@ -107,4 +106,3 @@ def depth_first_search(node: int, color: int) -> bool:
107106
print(f"{result.failed} test(s) failed.")
108107
else:
109108
print("All tests passed!")
110-

0 commit comments

Comments
 (0)