-
-
Notifications
You must be signed in to change notification settings - Fork 46.9k
Add url and typing hint for BFS #2156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Hey @wuyudi, TravisCI finished with status TravisBuddy Request Identifier: 199a2480-b6f0-11ea-bb0d-6965ce86ea0c |
Co-authored-by: Christian Clauss <[email protected]>
Co-authored-by: Christian Clauss <[email protected]>
Hey @wuyudi, TravisCI finished with status TravisBuddy Request Identifier: a5cfeeb0-b6f2-11ea-bb0d-6965ce86ea0c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix several hidden troubles.
Hey @wuyudi, TravisCI finished with status TravisBuddy Request Identifier: f9755aa0-b6f2-11ea-bb0d-6965ce86ea0c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix the type of return value of bfs.
Hey @wuyudi, TravisCI finished with status TravisBuddy Request Identifier: 760f6510-b6f3-11ea-bb0d-6965ce86ea0c |
You will need to change all instances of |
change all instances of bfs() to breadth_first_search().
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change all instances of bfs() to breadth_first_search().
Hey @wuyudi, TravisCI finished with status TravisBuddy Request Identifier: 76d334d0-b6f4-11ea-bb0d-6965ce86ea0c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change the function name in annotate.
Hey @wuyudi, TravisCI finished with status TravisBuddy Request Identifier: eb9c0e90-b6f4-11ea-bb0d-6965ce86ea0c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add one more blank line.
Hey @wuyudi, TravisCI finished with status TravisBuddy Request Identifier: 484d58a0-b6f6-11ea-bb0d-6965ce86ea0c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete one blank line.
Hey @wuyudi, TravisCI finished with status TravisBuddy Request Identifier: 54857070-b6f7-11ea-bb0d-6965ce86ea0c |
I've read the https://www.flake8rules.com/rules/W391.html, and still don't know how to do it. I've tried using 0 ,1,2 blank lines...
Do not worry about Euler 47 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete one blank line.
Confused with this https://www.flake8rules.com/rules/W391.html
Hey @wuyudi, TravisCI finished with status TravisBuddy Request Identifier: 1ffbf7a0-b6f9-11ea-bb0d-6965ce86ea0c |
Co-authored-by: Christian Clauss <[email protected]>
Co-authored-by: Christian Clauss <[email protected]>
Hey @wuyudi, TravisCI finished with status TravisBuddy Request Identifier: a51fad50-b6f9-11ea-bb0d-6965ce86ea0c |
We already have a breadth_first_search.py. Should this file be deleted?? |
Hey @wuyudi, TravisCI finished with status TravisBuddy Request Identifier: 4ac8aa20-b6fc-11ea-bb0d-6965ce86ea0c |
* Add typing for bfs * Add url for BFS * rename the function Co-authored-by: Christian Clauss <[email protected]> * Update graphs/bfs.py Co-authored-by: Christian Clauss <[email protected]> * Change the return value type of bfs * change the function name. change all instances of bfs() to breadth_first_search(). * change the function name in annotate * Add one more blank line. * Delete one blank line. * Delete one blank line. I've read the https://www.flake8rules.com/rules/W391.html, and still don't know how to do it. I've tried using 0 ,1,2 blank lines... * Update graphs/bfs.py Co-authored-by: Christian Clauss <[email protected]> * Update graphs/bfs.py Co-authored-by: Christian Clauss <[email protected]> * Rename bfs.py to breadth_first_search_2.py Co-authored-by: Christian Clauss <[email protected]>
Describe your change:
Add typing for bfs and make the code more brief.
Checklist:
Fixes: #{$ISSUE_NO}
.