Utility function to check if current vertex is already present in path
def isNotVisited ( x : int , path : List [ int ] ) -> int : NEW_LINE INDENT size = len ( path ) NEW_LINE for i in range ( size ) : NEW_LINE INDENT if ( path [ i ] == x ) : NEW_LINE INDENT return 0 NEW_LINE DEDENT DEDENT return 1 NEW_LINE DEDENT