<｜begin▁of▁sentence｜>### Instruction:
As a filmmaker, you may encounter scenarios where precise edits on specific scenes or sequences are required. In this context, imagine you are in the process of editing a short film that features a network of interconnected characters. Each character is represented by a vertex, and their relationships are depicted by edges. If you need to remove a specific connection between two characters, the equivalent action in networkx can be achieved using the delete_edges function. For example, you may want to delete the connection that symbolizes a particular interaction or relationship between characters, identified by a unique ID (e.g., edge with ID 2). This task could be crucial for refining the narrative flow of the film, ensuring that each character's storyline is accurately depicted.
### Response:
import igraph as ig

# Create a simple undirected graph with 5 edges
g = ig.Graph.Erdos_Renyi(n=5, m=5, directed=False)

# Print the summary of the graph before edge deletion
print('Graph before deletion:')
print(g)

# Delete the edge with id 2
edge_to_delete = 2
g.delete_edges(edge_to_delete)

# Print the summary of the graph after edge deletion
print('\nGraph after deleting edge with id 2:')
print(g)
<|EOT|>
