Skip to content

Commit 5b56b19

Browse files
github-actionsgithub-actions
github-actions
authored and
github-actions
committed
fixup! Format Python code with psf/black push
1 parent 398d00b commit 5b56b19

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

graphs/dfs.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,18 @@ def depth_first_search(graph: Dict, start: str) -> Set[int]:
4242
return explored
4343

4444

45-
G = { "A": ["B", "C", "D"], "B": ["A", "D", "E"],
46-
"C": ["A", "F"], "D": ["B", "D"], "E": ["B", "F"],
47-
"F": ["C", "E", "G"], "G": ["F"] }
45+
G = {
46+
"A": ["B", "C", "D"],
47+
"B": ["A", "D", "E"],
48+
"C": ["A", "F"],
49+
"D": ["B", "D"],
50+
"E": ["B", "F"],
51+
"F": ["C", "E", "G"],
52+
"G": ["F"],
53+
}
4854

4955
if __name__ == "__main__":
5056
import doctest
57+
5158
doctest.testmod()
5259
print(depth_first_search(G, "A"))

0 commit comments

Comments
 (0)