Skip to content

Commit

Permalink
Correção na função que encontra ciclos
Browse files Browse the repository at this point in the history
  • Loading branch information
hfcipriano committed Nov 6, 2016
1 parent c74f408 commit be181b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scr/tad/grafo/grafo.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ int buscarRelacao(lista *arestas, lista *antecessores, int sucessor) {
node *n = antecessores->raiz;
while(n != NULL){
arco *arco= n->elemento;
if(arco->antecessor->bool_marcardo){
return bool_FALSE;
}
arco->antecessor->bool_marcardo = bool_TRUE;
if(arco->sucessor->valor == sucessor){
return bool_TRUE;
}
Expand Down

0 comments on commit be181b2

Please sign in to comment.