TheAlgorithms-Python/graphs
Dean Bring cd684fd947
Added algorithm to deeply clone a graph (#9765)
* Added algorithm to deeply clone a graph

* Fixed file name and removed a function call

* Removed nested function and fixed class parameter types

* Fixed doctests

* bug fix

* Added class decorator

* Updated doctests and fixed precommit errors

* Cleaned up code

* Simplified doctest

* Added doctests

* Code simplification
2023-10-06 00:45:40 +02:00
..
tests Improved Graph Implementations (#8730) 2023-05-31 22:06:12 +02:00
__init__.py
a_star.py pre-commit: Upgrade psf/black for stable style 2023 (#8110) 2023-02-01 18:44:54 +05:30
articulation_points.py
basic_graphs.py Make some ruff fixes (#8154) 2023-03-01 17:23:33 +01:00
bellman_ford.py Add Flake8 comprehensions to pre-commit (#7235) 2022-10-15 19:29:42 +02:00
bi_directional_dijkstra.py Fix ruff errors (#8936) 2023-08-09 13:25:30 +05:30
bidirectional_a_star.py
bidirectional_breadth_first_search.py
boruvka.py
breadth_first_search_2.py Update breadth_first_search_2.py (#7765) 2022-10-28 22:27:39 +02:00
breadth_first_search_shortest_path_2.py Rename files (#7819) 2022-10-29 14:31:56 +02:00
breadth_first_search_shortest_path.py Add more ruff rules (#8767) 2023-05-26 09:34:17 +02:00
breadth_first_search_zero_one_shortest_path.py Rename files (#7819) 2022-10-29 14:31:56 +02:00
breadth_first_search.py
check_bipartite_graph_bfs.py pre-commit: Upgrade psf/black for stable style 2023 (#8110) 2023-02-01 18:44:54 +05:30
check_bipartite_graph_dfs.py Updated check_bipartite_graph_dfs.py (#9525) 2023-10-05 19:33:05 +02:00
check_cycle.py Make some ruff fixes (#8154) 2023-03-01 17:23:33 +01:00
connected_components.py Make some ruff fixes (#8154) 2023-03-01 17:23:33 +01:00
deep_clone_graph.py Added algorithm to deeply clone a graph (#9765) 2023-10-06 00:45:40 +02:00
depth_first_search_2.py
depth_first_search.py
dijkstra_2.py Add flake8 pluin flake8 bugbear to pre-commit (#7132) 2022-10-13 18:03:06 +02:00
dijkstra_algorithm.py Make some ruff fixes (#8154) 2023-03-01 17:23:33 +01:00
dijkstra_alternate.py Create graphs/dijkstra_alternate.py (#7405) 2022-10-20 09:48:28 +02:00
dijkstra_binary_grid.py Dijkstra algorithm with binary grid (#8802) 2023-06-22 13:49:09 +02:00
dijkstra.py Add flake8-builtins to pre-commit and fix errors (#7105) 2022-10-13 19:53:59 +05:30
dinic.py
directed_and_undirected_(weighted)_graph.py [Upgrade Ruff] Fix all errors raised from ruff (#8879) 2023-07-22 12:05:10 +02:00
edmonds_karp_multiple_source_and_sink.py [Upgrade Ruff] Fix all errors raised from ruff (#8879) 2023-07-22 12:05:10 +02:00
eulerian_path_and_circuit_for_undirected_graph.py Ruff fixes (#8913) 2023-07-31 13:53:26 -07:00
even_tree.py
finding_bridges.py Add flake8-builtins to pre-commit and fix errors (#7105) 2022-10-13 19:53:59 +05:30
frequent_pattern_graph_miner.py Make some ruff fixes (#8154) 2023-03-01 17:23:33 +01:00
g_topological_sort.py
gale_shapley_bigraph.py Remove useless code in doctests (#7733) 2022-10-27 22:52:00 +02:00
graph_adjacency_list.py Improved Graph Implementations (#8730) 2023-05-31 22:06:12 +02:00
graph_adjacency_matrix.py Improved Graph Implementations (#8730) 2023-05-31 22:06:12 +02:00
graph_list.py Remove useless code in doctests (#7733) 2022-10-27 22:52:00 +02:00
graphs_floyd_warshall.py
greedy_best_first.py Fix greedy_best_first (#8775) 2023-08-15 15:52:51 -07:00
greedy_min_vertex_cover.py
kahns_algorithm_long.py Add flake8 pluin flake8 bugbear to pre-commit (#7132) 2022-10-13 18:03:06 +02:00
kahns_algorithm_topo.py Add flake8 pluin flake8 bugbear to pre-commit (#7132) 2022-10-13 18:03:06 +02:00
karger.py pre-commit: Upgrade psf/black for stable style 2023 (#8110) 2023-02-01 18:44:54 +05:30
markov_chain.py
matching_min_vertex_cover.py
minimum_path_sum.py
minimum_spanning_tree_boruvka.py Make some ruff fixes (#8154) 2023-03-01 17:23:33 +01:00
minimum_spanning_tree_kruskal2.py
minimum_spanning_tree_kruskal.py
minimum_spanning_tree_prims2.py Make some ruff fixes (#8154) 2023-03-01 17:23:33 +01:00
minimum_spanning_tree_prims.py Make some ruff fixes (#8154) 2023-03-01 17:23:33 +01:00
multi_heuristic_astar.py pre-commit: Upgrade psf/black for stable style 2023 (#8110) 2023-02-01 18:44:54 +05:30
page_rank.py Raise error not string (#7945) 2022-11-06 15:54:44 +01:00
prim.py Add flake8-builtins to pre-commit and fix errors (#7105) 2022-10-13 19:53:59 +05:30
random_graph_generator.py Remove useless code in doctests (#7733) 2022-10-27 22:52:00 +02:00
scc_kosaraju.py Add flake8 pluin flake8 bugbear to pre-commit (#7132) 2022-10-13 18:03:06 +02:00
strongly_connected_components.py
tarjans_scc.py Delete empty junk file (#9062) 2023-09-17 00:12:31 +02:00