5 CS_INT i, p, n, len, top, *Ap, *Ai ;
6 if (!
CS_CSC (A) || !parent || !s || !w)
return (-1) ;
7 top = n = A->n ; Ap = A->p ; Ai = A->i ;
9 for (p = Ap [k] ; p < Ap [k+1] ; p++)
13 for (len = 0 ; !
CS_MARKED (w,i) ; i = parent [i])
18 while (len > 0) s [--top] = s [--len] ;
20 for (p = top ; p < n ; p++)
CS_MARK (w, s [p]) ;
CS_INT cs_ereach(const cs *A, CS_INT k, const CS_INT *parent, CS_INT *s, CS_INT *w)