set all heads of the successor lists to null

for (i=1;i<=n;i++)

succ[i] = setnull();