From 54dfb2381046faf07d20dedf09aee45ab43e40ad Mon Sep 17 00:00:00 2001 From: pkdism Date: Wed, 30 Nov 2016 19:38:15 +0530 Subject: [PATCH] Add DFS --- Graph/DFS.cpp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Graph/DFS.cpp diff --git a/Graph/DFS.cpp b/Graph/DFS.cpp new file mode 100644 index 000000000..66a5f2b3c --- /dev/null +++ b/Graph/DFS.cpp @@ -0,0 +1,27 @@ +#include +using namespace std; +int v = 4; +void DFSUtil_(int graph[4][4],bool visited[],int s){ + visited[s] = true; + cout<