issues
search
stevenhalim
/
cpbook-code
CP4 Free Source Code Project (C++17, Java11, Python3 and OCaml)
2k
stars
493
forks
source link
Type annotate and document ch8/maxflow.py
#92
Closed
shmulvad
closed
2 years ago
shmulvad
commented
2 years ago
Document how to use MaxFlow code
Type annotate functions to be called by user
Follow PEP for naming, formatting, etc
Remove call to
main()
that would be executed upon import, instead add it under
if __name__ == '__main__':
Add
__repr__
and
copy
to class
Add copyright notice at top of file
main()
that would be executed upon import, instead add it underif __name__ == '__main__':
__repr__
andcopy
to class