Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upfeat : find maximum flow in a graph #791
Merged
Conversation
| * vis -> visited node | ||
| * c_n -> current_node | ||
| * n -> total number of nodes | ||
| * m -> total number of edges | ||
| * s -> source | ||
| * t -> sink |
Comment on lines
11
to
16
This comment has been minimized.
This comment has been minimized.
cclauss
May 24, 2020
Member
Please use real variable names and wrap lines like the rest of the world does.
This comment has been minimized.
This comment has been minimized.
| using std::min; | ||
| using std::max; | ||
| using std::tie; | ||
| using std::make_tuple; | ||
| using std::make_pair; | ||
| // standard containers used | ||
| using std::vector; | ||
| using std::queue; | ||
| using std::bitset; | ||
| using std::tuple; | ||
| // standard streams used | ||
| using std::cout; | ||
| using std::cin; |
Comment on lines
29
to
41
This comment has been minimized.
This comment has been minimized.
|
LGTM. Thanks. |
|
It will be helpful if you merge this request so that I can create another for the n-queen solution. |
|
good work @offamitkumar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
offamitkumar commentedMay 24, 2020
fixes #790
Implemented the Ford-Fulkerson method with Edmond Karp Optimization.