Function to perform the DFSUtil ( ) for all the unvisited vertices
def DFS ( V , initial , finall ) : NEW_LINE INDENT global ans , visited NEW_LINE ans = 0 NEW_LINE visited = [ False ] * V NEW_LINE DEDENT