-
Notifications
You must be signed in to change notification settings - Fork 35
Max flow implementation #125
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
jmatak
left a comment
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.
I have one comment related to using deque, and what's left is writing the documentation on memgraph/docs:
https://github.com/memgraph/docs/tree/master/mage/algorithms/traditional-graph-analytics
https://github.com/memgraph/docs/tree/master/mage/query-modules/python
Enjoy 😄
|
/docs is ready for PR |
| MERGE (a:Node {id: 2}) MERGE (b:Node {id: 4}) CREATE (a)-[:RELATION {weight: 10}]->(b); | ||
| MERGE (a:Node {id: 3}) MERGE (b:Node {id: 4}) CREATE (a)-[:RELATION {weight: 1}]->(b); | ||
| MERGE (a:Node {id: 3}) MERGE (b:Node {id: 5}) CREATE (a)-[:RELATION {wght: 11}]->(b); | ||
| MERGE (a:Node {id: 4}) MERGE (b:Node {id: 5}) CREATE (a)-[:RELATION {weight: 12}]->(b); No newline at end of file |
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.
@jmatak are we adding a new line at the end of the file or not, I forgot what was the rule?
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.
The rule is to add it
Josipmrden
left a comment
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.
Looks pretty good to me, minor comment only
| @@ -0,0 +1 @@ | |||
| CREATE ({id: 0}), ({id: 5}) No newline at end of file | |||
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.
@brunos252 Set your IDE to add a new line whenever you save a file.
jmatak
left a comment
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 new line and it's finished 🎉
Description
Algorithm implementation for finding max flow in a graph. Ford-Fulkerson algorithm was used along with capacity scaling.
Also implemented is a BFS search algorithm for finding min and max values of an edge weight, used for the capacity scaling.
Pull request type
Related issues
Delete if this PR doesn't resolve any issues. Link the issue if it does.
######################################
Reviewer checklist (the reviewer checks this part)
Module/Algorithm
######################################