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