protected LongWritable getTargetVertexId(LongPair endpoints) throws IOException {
   return new LongWritable(endpoints.getSecond());
 }
 protected LongWritable getSourceVertexId(LongPair endpoints) throws IOException {
   return new LongWritable(endpoints.getFirst());
 }