@Override
		protected void reduce(IntWritable key, Iterable<Text> values,
				Context context) throws IOException, InterruptedException {
			reduceid = key.get();
			if(writer==null){
				writer = new FileWriter(RunOver.spillPath+reduceid);
			}
			for(Text t:values){
				String sStr = t.toString();
				if(time<T){
					SubGraph subGraph = new SubGraph();
					subGraph.readInString(sStr);
					stack.add(subGraph);
					treesize++;
					while(time<T&&!stack.isEmpty()){
						time+=computeOneSubGraph(stack.pop(),true,context);
					}
					while(!stack.isEmpty()){
						spillToDisk(writer,stack.pop());
					}
				}else{
					writer.write(((count++)%reduceNumber)+" 0%"+sStr);
					writer.write("\n");
				}
			}
		}