added support for random vertex cuts
This commit is contained in:
parent
5867a824de
commit
8dfac4ea8f
|
@ -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?
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue