Function to perform the DFS of graph recursively from a given vertex u
def DFSUtil ( u , foo , foo1 , initial , finall ) : NEW_LINE INDENT global visited , ans , adj NEW_LINE visited [ u ] = True NEW_LINE DEDENT