TheAlgorithms-Python/graphs
wuyudi d2fa91b18e
Add url and typing hint for BFS (#2156)
* Add typing for bfs

* Add url for BFS

* rename the function

Co-authored-by: Christian Clauss <cclauss@me.com>

* Update graphs/bfs.py

Co-authored-by: Christian Clauss <cclauss@me.com>

* Change the return value type of bfs

* change the function name.

change all instances of bfs() to breadth_first_search().

* change the function name in annotate

* Add one more blank line.

* Delete one blank line.

* Delete one blank line.

I've read the https://www.flake8rules.com/rules/W391.html, and still don't know how to do it. I've tried using 0 ,1,2 blank lines...

* Update graphs/bfs.py

Co-authored-by: Christian Clauss <cclauss@me.com>

* Update graphs/bfs.py

Co-authored-by: Christian Clauss <cclauss@me.com>

* Rename bfs.py to breadth_first_search_2.py

Co-authored-by: Christian Clauss <cclauss@me.com>
2020-06-25 17:54:41 +02:00
..
a_star.py Set the Python file maximum line length to 88 characters (#2122) 2020-06-16 10:09:19 +02:00
articulation_points.py Tighten up psf/black and flake8 (#2024) 2020-05-22 08:10:11 +02:00
basic_graphs.py Tighten up psf/black and flake8 (#2024) 2020-05-22 08:10:11 +02:00
bellman_ford.py Tighten up psf/black and flake8 (#2024) 2020-05-22 08:10:11 +02:00
bfs_shortest_path.py Add docstr and algorithm to BFS shortest path module (#1637) 2019-12-19 10:40:16 +01:00
bidirectional_a_star.py Fixes in Bidirectional A* (#2020) 2020-05-21 21:50:52 +02:00
bidirectional_breadth_first_search.py Blacken our code (#2125) 2020-06-17 06:59:38 +08:00
breadth_first_search_2.py Add url and typing hint for BFS (#2156) 2020-06-25 17:54:41 +02:00
breadth_first_search_shortest_path.py Tighten up psf/black and flake8 (#2024) 2020-05-22 08:10:11 +02:00
breadth_first_search.py Update breadth_first_search.py (#1869) 2020-04-19 19:26:52 +05:30
check_bipartite_graph_bfs.py Tighten up psf/black and flake8 (#2024) 2020-05-22 08:10:11 +02:00
check_bipartite_graph_dfs.py Tighten up psf/black and flake8 (#2024) 2020-05-22 08:10:11 +02:00
connected_components.py Implement connected components algorithm for graphs (#2113) 2020-06-17 18:15:24 +02:00
depth_first_search_2.py Tighten up psf/black and flake8 (#2024) 2020-05-22 08:10:11 +02:00
depth_first_search.py Tighten up psf/black and flake8 (#2024) 2020-05-22 08:10:11 +02:00
dijkstra_2.py psf/black code formatting (#1277) 2019-10-05 10:14:13 +05:00
dijkstra_algorithm.py Create codespell.yml (#1698) 2020-01-18 13:24:33 +01:00
dijkstra.py Tighten up psf/black and flake8 (#2024) 2020-05-22 08:10:11 +02:00
dinic.py Tighten up psf/black and flake8 (#2024) 2020-05-22 08:10:11 +02:00
directed_and_undirected_(weighted)_graph.py Tighten up psf/black and flake8 (#2024) 2020-05-22 08:10:11 +02:00
edmonds_karp_multiple_source_and_sink.py pyupgrade --py37-plus **/*.py (#1654) 2020-01-03 22:25:36 +08:00
eulerian_path_and_circuit_for_undirected_graph.py Tighten up psf/black and flake8 (#2024) 2020-05-22 08:10:11 +02:00
even_tree.py psf/black code formatting (#1277) 2019-10-05 10:14:13 +05:00
finding_bridges.py Tighten up psf/black and flake8 (#2024) 2020-05-22 08:10:11 +02:00
frequent_pattern_graph_miner.py Tighten up psf/black and flake8 (#2024) 2020-05-22 08:10:11 +02:00
g_topological_sort.py Update g_topological_sort.py (#1873) 2020-04-16 12:34:14 +02:00
graph_list.py pyupgrade --py37-plus **/*.py (#1654) 2020-01-03 22:25:36 +08:00
graph_matrix.py psf/black code formatting (#1277) 2019-10-05 10:14:13 +05:00
graphs_floyd_warshall.py Set the Python file maximum line length to 88 characters (#2122) 2020-06-16 10:09:19 +02:00
greedy_best_first.py Graphs : Greedy Best First (#2018) 2020-05-20 23:25:48 +02:00
kahns_algorithm_long.py Tighten up psf/black and flake8 (#2024) 2020-05-22 08:10:11 +02:00
kahns_algorithm_topo.py Tighten up psf/black and flake8 (#2024) 2020-05-22 08:10:11 +02:00
minimum_spanning_tree_boruvka.py added Boruvka's MST algorithm (#2026) 2020-05-25 15:10:54 +02:00
minimum_spanning_tree_kruskal.py psf/black code formatting (#1277) 2019-10-05 10:14:13 +05:00
minimum_spanning_tree_prims.py Set the Python file maximum line length to 88 characters (#2122) 2020-06-16 10:09:19 +02:00
multi_heuristic_astar.py contribution guidelines checks (#1787) 2020-03-04 13:40:28 +01:00
page_rank.py Improved readability (#1615) 2019-12-07 06:39:59 +01:00
prim.py Add Prim's algorithm with min heap (#1704) 2020-01-22 02:46:03 +08:00
scc_kosaraju.py psf/black code formatting (#1277) 2019-10-05 10:14:13 +05:00
strongly_connected_components.py Strongly connected components (#2114) 2020-06-17 18:16:54 +02:00
tarjans_scc.py Set the Python file maximum line length to 88 characters (#2122) 2020-06-16 10:09:19 +02:00