@Override
		protected void map(LongWritable key, Text value, Context context)
				throws IOException, InterruptedException {
			String str = value.toString();
			int k = -1;

			String[] kvoriginal = str.split("\\t");
			k = Integer.parseInt(kvoriginal[0]);
			if (k == 0)
				return;
			StringTokenizer stk = new StringTokenizer(kvoriginal[1]);
			if (k == -1)// 子图信息
			{
				int type = Integer.valueOf(stk.nextToken("@"));
				int p = Integer.valueOf(stk.nextToken("@"));
				int tk = Integer.valueOf(stk.nextToken("@"));
				context.write(new PairTypeInt(type, p, tk), new Text(stk
						.nextToken("toend").substring(1)));
			} else// 边连接信息
			{
				try{
				int type = Integer.valueOf(stk.nextToken("#"));
				String[] parts = stk.nextToken("#").split(",");
				int tk = Integer.valueOf(stk.nextToken("#"));
				String toend = stk.nextToken("toend").substring(1);

				for (String i : parts)
					context.write(new PairTypeInt(1,
							Integer.parseInt(i.trim()), tk), new Text(toend));
				}catch(NoSuchElementException e){
					System.out.println(str);
					System.out.println(k+"--------------");
					System.out.println(kvoriginal[1]);
					throw e;
				}
			}

		}