Adding mapEdges and mapTriplets by Partition

These functions were added to support random number generation while transforming edge attributes in a deterministic fashion.  

To support these changes consistently, I pass the partition Id along with the EdgePartition in EdgeRDD operations.