IS MY DFS CODE ALRIGHT??? CAN anyone plzzzz check????????? will all the output be OK with my CODE??and one more question- is the forloop necessary here before these line??
{
if(color[2]==white)
dfsvisit(2,n_v);
}
code:
#include<iostream>
#include<cstring>
#include<stdio.h>
using namespace std;
#define white 0
#define gray 1
#define black 2
int color[100],adjmat[100][100],parent[100];