Skip to content
Snippets Groups Projects
Commit 8dfac4ea authored by Joseph E. Gonzalez's avatar Joseph E. Gonzalez
Browse files

added support for random vertex cuts

parent 5867a824
No related branches found
No related tags found
No related merge requests found
...@@ -466,6 +466,15 @@ object GraphImpl { ...@@ -466,6 +466,15 @@ object GraphImpl {
} }
/**
* Assign edges to an aribtrary machine corresponding to a
* random vertex cut.
*/
protected def randomVertexCut(src: Vid, dst: Vid, numParts: Pid): Pid = {
math.abs((src, dst).hashCode()) % Pid
}
/** /**
* @todo(crankshaw) how does this effect load balancing? * @todo(crankshaw) how does this effect load balancing?
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment