decrease the count of the successor pointed to by recordpointer, and if the count becomes zero, add the successor to the bag

currentsucc = info(recordpointer);

decrease(currentsucc,count);

if(iszero(currentsucc,count))

{

ranking.rank[*pbag] = currentsucc;

*pbag = *pbag + 1;

}