-
-
Notifications
You must be signed in to change notification settings - Fork 46.6k
Add doctest and fix mypy type annotation in bellman ford #4506
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
86d05f3
to
e1327cd
Compare
""" | ||
Returns shortest paths from a vertex src to all | ||
other vertices. | ||
>>> edges = [(2, 1, -10), (3, 2, 3), (0, 3, 5), (0, 1, 4)] |
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.
Why not just create test_edges
at global scope and then use them here and also at line 46.
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.
Will look into it
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.
Now, edges
is being used here only. So, it has not been declared globally.
e1327cd
to
159bd75
Compare
Are any other change suggestions left? |
Describe your change:
Checklist:
Fixes: #{$ISSUE_NO}
.related issue #4052