mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 01:09:40 +08:00
Added Whitespace and Docstring (#924)
* Added Whitespace and Docstring I modified the file to make Pylint happier and make the code more readable. * Beautified Code and Added Docstring I modified the file to make Pylint happier and make the code more readable. * Added DOCSTRINGS, Wikipedia link, and whitespace I added DOCSTRINGS and whitespace to make the code more readable and understandable. * Improved Formatting * Wrapped comments * Fixed spelling error for `movement` variable * Added DOCSTRINGs * Improved Formatting * Corrected whitespace to improve readability. * Added docstrings. * Made comments fit inside an 80 column layout.
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
"""Topological Sort."""
|
||||
|
||||
from __future__ import print_function
|
||||
# a
|
||||
# / \
|
||||
@ -28,6 +30,7 @@ def topological_sort(start, visited, sort):
|
||||
# return sort
|
||||
return sort
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
sort = topological_sort('a', [], [])
|
||||
print(sort)
|
||||
|
Reference in New Issue
Block a user