Now that GraphImpl has an explicit partitioner, it might be worthwhile to ensure the partitioner is a CanonicalRandomVertexCut in groupEdgeTriplets and groupEdges and maybe throw a SparkException if not.