Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void buscar(int **red, int nodoBuscar, int nodoFinal){
- for(int i = 0; i < VERTICE ; i++){
- if(red[nodoBuscar][i] == 1){
- buscar(red, i, nodoFinal);
- }
- if(red[nodoBuscar][i] == 1 && i == nodoFinal){
- cout << "Encontrado" << endl;
- return;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement