[SPARK-1987] EdgePartitionBuilder: More memory-efficient graph construction