5 CS_INT i, p, p2, done, jnew, head = 0, *Gp, *Gi ;
6 if (!
CS_CSC (G) || !xi || !pstack)
return (-1) ;
7 Gp = G->p ; Gi = G->i ;
12 jnew = pinv ? (pinv [j]) : j ;
16 pstack [head] = (jnew < 0) ? 0 :
CS_UNFLIP (Gp [jnew]) ;
19 p2 = (jnew < 0) ? 0 :
CS_UNFLIP (Gp [jnew+1]) ;
20 for (p = pstack [head] ; p < p2 ; p++)
CS_INT cs_dfs(CS_INT j, cs *G, CS_INT top, CS_INT *xi, CS_INT *pstack, const CS_INT *pinv)