def is_adjacency_matrix_symmetric(adjacency_matrix):
<EOL>num_columns = len(adjacency_matrix)<EOL>for column in adjacency_matrix:<EOL><INDENT>if len(column) != num_columns:<EOL><INDENT>return False<EOL><DEDENT><DEDENT>max_i = <NUM_LIT:0><EOL>for j in range(num_columns):<EOL><INDENT>for i in range(max_i):<EOL><INDENT>if i == j:<EOL><INDENT>continue<EOL><DEDENT>if adjacency_matrix[j][i] != adjacency_matrix[i][j]:<EOL><INDENT>return False<EOL><DEDENT><DEDENT>max_i += <NUM_LIT:1><EOL><DEDENT>return True<EOL>
Determines if an adjacency matrix is symmetric.
       Ref: http://mathworld.wolfram.com/SymmetricMatrix.html