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
2018-10-20 14:45:08 -05:00
2019-05-16 19:20:42 +08:00
2018-11-12 23:38:08 +05:30
2019-06-16 02:07:23 +05:30
2019-06-10 12:16:36 +05:30
2018-10-19 17:14:25 -05:00
2019-05-26 22:21:22 +05:30
2018-10-30 14:59:46 +01:00
2019-06-07 23:38:43 +08:00
2019-05-26 21:56:10 +05:30
2019-05-26 22:03:53 +05:30
2019-06-02 12:14:18 +08:00
2019-06-02 12:14:18 +08:00

The Algorithms - Python

Donate   Gitter chat   Open in Gitpod

All algorithms implemented in Python (for education)

These implementations are for learning purposes. They may be less efficient than the implementations in the Python standard library.

Contribution Guidelines

Read our Contribution Guidelines before you contribute.

Community Channel

We're on Gitter! Please join us.

Languages
Python 99.9%
Shell 0.1%