private static void addTODegList(DegList prunablenotlist, Pair y) {
		Node node = prunablenotlist.getHead();
		while(node!=null && node.deg<y.cdeg){
			node = node.next;
		}
		if(node ==null){
			Node tmp = new Node();
			HashSet<Integer> points = new HashSet<Integer>();
			tmp.points = points;
			points.add(y.point);
			tmp.deg = y.cdeg;
			prunablenotlist.insertAfter(prunablenotlist.getTail(), tmp);
		}else if(node.deg==y.cdeg){
			node.points.add(y.point);
		}else {
			Node tmp = new Node();
			HashSet<Integer> points = new HashSet<Integer>();
			tmp.points = points;
			points.add(y.point);
			tmp.deg = y.cdeg;
			prunablenotlist.insertBefore(node, tmp);
		}
	}