added support for random vertex cuts

This commit is contained in:
Joseph E. Gonzalez 2013-10-10 14:09:01 -07:00
parent 5867a824de
commit 8dfac4ea8f

View file

@ -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?
*/