Driver Code
if __name__ == ' _ _ main _ _ ' : NEW_LINE INDENT N = 2 NEW_LINE graph = [ [ ] for i in range ( N * N + 1 ) ] NEW_LINE insertpath ( graph , N , 1 , 1 , 1 , 2 ) NEW_LINE insertpath ( graph , N , 1 , 2 , 2 , 2 ) NEW_LINE print ( countNonAccessible ( graph , N ) ) NEW_LINE DEDENT