Python/graphs
StephenGemin a99acae32d Add docstring and comments per Issue #727 (#895)
I've added comments to make understanding this method a little easier for those that are not familiar.  This should close out #727 .

Other changes:
1. added if __name__ == '__main__' rather than the "# MAIN" comment
2. put in return for distances and vertices.  Previously everything was just printed out, but someone may find it useful to have the algorithm return something.
3. Other PEP8 changes
4.  Added example input and expected output as a check to make sure any future changes will give the same output.
2019-06-18 18:28:01 +08:00
..
a_star.py Some directories had a capital in their name [fixed]. Added a recursive factorial algorithm. (#763) 2019-04-22 22:53:56 +08:00
articulation_points.py Some directories had a capital in their name [fixed]. Added a recursive factorial algorithm. (#763) 2019-04-22 22:53:56 +08:00
basic_graphs.py Some directories had a capital in their name [fixed]. Added a recursive factorial algorithm. (#763) 2019-04-22 22:53:56 +08:00
bellman_ford.py Some directories had a capital in their name [fixed]. Added a recursive factorial algorithm. (#763) 2019-04-22 22:53:56 +08:00
bfs_shortest_path.py refactor 2019-05-26 21:56:10 +05:30
BFS.py Some directories had a capital in their name [fixed]. Added a recursive factorial algorithm. (#763) 2019-04-22 22:53:56 +08:00
breadth_first_search.py Some directories had a capital in their name [fixed]. Added a recursive factorial algorithm. (#763) 2019-04-22 22:53:56 +08:00
check_bipartite_graph_bfs.py Some directories had a capital in their name [fixed]. Added a recursive factorial algorithm. (#763) 2019-04-22 22:53:56 +08:00
check_bipartite_graph_dfs.py Implement check_bipartite_graph using DFS. (#808) 2019-05-16 19:24:56 +08:00
depth_first_search.py Some directories had a capital in their name [fixed]. Added a recursive factorial algorithm. (#763) 2019-04-22 22:53:56 +08:00
DFS.py Corrected wrong DFS implementation (#903) 2019-06-17 18:13:36 +08:00
dijkstra_2.py Some directories had a capital in their name [fixed]. Added a recursive factorial algorithm. (#763) 2019-04-22 22:53:56 +08:00
dijkstra_algorithm.py Some directories had a capital in their name [fixed]. Added a recursive factorial algorithm. (#763) 2019-04-22 22:53:56 +08:00
dijkstra.py Some directories had a capital in their name [fixed]. Added a recursive factorial algorithm. (#763) 2019-04-22 22:53:56 +08:00
Directed_and_Undirected_(Weighted)_Graph.py refactor 2019-05-26 21:56:10 +05:30
edmonds_karp_multiple_source_and_sink.py refactor 2019-05-26 21:56:10 +05:30
Eulerian_path_and_circuit_for_undirected_graph.py refactor 2019-05-26 21:56:10 +05:30
even_tree.py Some directories had a capital in their name [fixed]. Added a recursive factorial algorithm. (#763) 2019-04-22 22:53:56 +08:00
finding_bridges.py Some directories had a capital in their name [fixed]. Added a recursive factorial algorithm. (#763) 2019-04-22 22:53:56 +08:00
floyd_warshall.py Add docstring and comments per Issue #727 (#895) 2019-06-18 18:28:01 +08:00
graph_list.py Removed the (incorrectly named) redundant file graph_list.py and renamed graph.py to graph_list.py (#820) 2019-05-21 14:06:05 +08:00
graph_matrix.py Some directories had a capital in their name [fixed]. Added a recursive factorial algorithm. (#763) 2019-04-22 22:53:56 +08:00
kahns_algorithm_long.py Some directories had a capital in their name [fixed]. Added a recursive factorial algorithm. (#763) 2019-04-22 22:53:56 +08:00
kahns_algorithm_topo.py Some directories had a capital in their name [fixed]. Added a recursive factorial algorithm. (#763) 2019-04-22 22:53:56 +08:00
minimum_spanning_tree_kruskal.py Some directories had a capital in their name [fixed]. Added a recursive factorial algorithm. (#763) 2019-04-22 22:53:56 +08:00
minimum_spanning_tree_prims.py Some directories had a capital in their name [fixed]. Added a recursive factorial algorithm. (#763) 2019-04-22 22:53:56 +08:00
multi_hueristic_astar.py Some directories had a capital in their name [fixed]. Added a recursive factorial algorithm. (#763) 2019-04-22 22:53:56 +08:00
page_rank.py refactor 2019-05-26 21:56:10 +05:30
prim.py Removed Graphs and move prim.py to graphs (#872) 2019-06-05 09:37:05 +08:00
scc_kosaraju.py Some directories had a capital in their name [fixed]. Added a recursive factorial algorithm. (#763) 2019-04-22 22:53:56 +08:00
tarjans_scc.py Some directories had a capital in their name [fixed]. Added a recursive factorial algorithm. (#763) 2019-04-22 22:53:56 +08:00