<｜begin▁of▁sentence｜>### Instruction:
Given an Erdos-Renyi graph with 10 vertices and a connection probability of 0.5, can you use the AbstractCairoDrawer.__init__ method in igraph along with the DefaultGraphDrawer to create and show a plot of the graph, saving the result to 'graph.png'?
### Response:
from igraph import Graph
from igraph.drawing import Plot
from igraph.drawing.cairo.graph import DefaultGraphDrawer

def create_plot(graph, filename):
    plot = Plot(surface=filename, bbox=(600, 600), background='white')
    drawer = DefaultGraphDrawer(context=plot.context, bbox=plot.bbox)
    drawer.draw(graph)
    plot.show()

# Create a simple igraph Graph
g = Graph.Erdos_Renyi(n=10, p=0.5)

# Create a plot of the graph
create_plot(g, 'graph.png')
<|EOT|>
