reduce
protected void reduce(LongPairWritable pair,
java.lang.Iterable<org.apache.hadoop.io.IntWritable> Degs,
org.apache.hadoop.mapreduce.Reducer.Context context)
throws java.io.IOException,
java.lang.InterruptedException
The reduce function of the second step
- Overrides:
reduce
in class org.apache.hadoop.mapreduce.Reducer<LongPairWritable,org.apache.hadoop.io.IntWritable,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.LongWritable>
- Parameters:
pair
- an edge (u, v) such that u < v
Degs
- a list of degree of source vertices. If a degree is less then 0, the degree is of destination vertex.
context
- of hadoop
- Throws:
java.io.IOException
- by hadoop
java.lang.InterruptedException
- by hadoop