<｜begin▁of▁sentence｜>### Instruction:
Given an undirected graph with edges (0, 1), (1, 2), (2, 0), can you use NetworkX to generate and display its adjacency matrix?
### Response:
from networkx.linalg.graphmatrix import adjacency_matrix
import networkx as nx

# Create a new undirected graph
G = nx.Graph()

# Add some edges to the graph
G.add_edges_from([(0, 1), (1, 2), (2, 0)])

# Generate the adjacency matrix
A = adjacency_matrix(G)

# Since __repr__ is a special method, it gets called behind the scenes when we print an object
# Printing the adjacency matrix object will invoke __repr__ and display the matrix
print(A)
<|EOT|>
