<｜begin▁of▁sentence｜>### Instruction:
Given a simple graph with edges [(0, 1), (1, 2), (2, 0)], how can you draw the adjacency matrix using CairoMatrixDrawer and save it to a file format like PNG?
### Response:
from igraph import Graph
from igraph.drawing.matrix import CairoMatrixDrawer
from cairo import Context, ImageSurface, FORMAT_ARGB32

# Create a graph with some edges
g = Graph(edges=[(0, 1), (1, 2), (2, 0)])

# Initialize a Cairo surface
surface = ImageSurface(FORMAT_ARGB32, 200, 200)
context = Context(surface)

# Initialize the matrix drawer with the given context
matrix_drawer = CairoMatrixDrawer(context=context)

# Draw the adjacency matrix of the graph on the Cairo surface
matrix_drawer.draw(g.get_adjacency())

# Save the result to a file
surface.write_to_png('adjacency_matrix.png')
<|EOT|>
