<｜begin▁of▁sentence｜>### Instruction:
Given a graph with edge set [(0, 1), (1, 2), (2, 3), (3, 0)], can you use the __str__ method of the adjacency matrix in networkx to get a string representation of the adjacency matrix and print it?
### Response:
import networkx as nx

# Create a graph
g = nx.Graph()
# Add edges to the graph
g.add_edges_from([(0, 1), (1, 2), (2, 3), (3, 0)])

# Get the adjacency matrix as a SciPy sparse matrix
matrix = nx.adjacency_matrix(g)

# Use the __str__ method of the matrix to get a string representation
matrix_str = matrix.__str__()
print(matrix_str)
<|EOT|>
