[top]; while(now!=u) { nid[now]=id; now=s[--top]; b[now]=0; }