Function to perform the DFS of graph recursively from a given vertex u
static void DFSUtil ( int u , boolean foo , boolean foo1 , boolean [ ] initial , boolean [ ] finall ) { visited . set ( u , true ) ;