diff --git a/Depth First Search/DFS.c b/Depth First Search/DFS.c new file mode 100644 index 0000000..c7ae35a --- /dev/null +++ b/Depth First Search/DFS.c @@ -0,0 +1,64 @@ +#include +#include +#define MAX 10 +void dfs(int graph[][MAX],int visit[],int n,int start) +{ + visit[start]=1; + int i; + printf("%d ",start); + for(i=0;i