<｜begin▁of▁sentence｜>### Instruction:
Given an Erdős–Rényi random graph with 10 vertices and 15 edges, can you use a custom edge drawer in igraph to plot this graph where each undirected edge is drawn as a straight line?
### Response:
from igraph import Graph, plot
import igraph as ig

class CustomEdgeDrawer(ig.drawing.edge.AbstractCairoEdgeDrawer):
    def draw_undirected_edge(self, edge, src_vertex, dest_vertex):
        ctx = self.context
        ctx.set_source_rgba(0, 0, 0, 1)  # Set line color to black
        ctx.move_to(src_vertex['x'], src_vertex['y'])
        ctx.line_to(dest_vertex['x'], dest_vertex['y'])
        ctx.stroke()

def draw_graph(graph):
    visual_style = {
        'vertex_size': 20,
        'vertex_color': 'blue',
        'edge_curved': False,
        'edge_drawer_factory': CustomEdgeDrawer,
    }
    plot(graph, **visual_style)

# Example usage
g = Graph.Erdos_Renyi(n=10, m=15)
draw_graph(g)
<|EOT|>
