Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
shivaparihar6119 committed Oct 19, 2023
2 parents 5699f55 + 627a226 commit d419742
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphs/check_bipartite_graph_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
>>> is_bipartite(defaultdict(list, {0: [1, 2], 1: [0, 2], 2: [0, 1]}))
True"""

def check_bipartite(graph:any) -> bool:
def check_bipartite(graph:defaultdict[int, list[int]]) -> bool:
queue = Queue()
visited = [False] * len(graph)
color = [-1] * len(graph)
Expand Down

0 comments on commit d419742

Please sign in to comment.