<｜begin▁of▁sentence｜>### Instruction:
Given a graph with random connections between 4 nodes where each edge exists with a 50% probability, can you plot the adjacency matrix using igraph's Matrix.__plot__ function with square cells, a color palette, and displaying the values of the matrix?
### Response:
from igraph import Graph, plot
from igraph.drawing.matrix import Matrix
import matplotlib.pyplot as plt

# Create an example matrix (e.g., adjacency matrix of a graph)
g = Graph.Erdos_Renyi(n=4, p=0.5)
adjacency_matrix = Matrix(g.get_adjacency())

# Create a plot with square cells, a palette for coloring, and display values
palette = RainbowPalette(n=100)
fig, ax = plt.subplots()
adjacency_matrix.__plot__(context=ax, style='palette', palette=palette, values=True, value_format='%d', square=True, grid_width=0.5)

# Display the plot
plt.show()
<|EOT|>
