<｜begin▁of▁sentence｜>### Instruction:
Given a graph with 5 vertices and edges [(0, 1), (1, 2), (2, 3), (3, 4)], can you use delete_vertices function in igraph to delete vertex with ID 2 and its connected edges? After deletion, print the summary of the graph.
### Response:
import igraph as ig

# Create a graph with 5 vertices
g = ig.Graph(n=5)

# Add edges to the graph
g.add_edges([(0, 1), (1, 2), (2, 3), (3, 4)])

# Delete vertex with ID 2 and its edges
g.delete_vertices(2)

# Print the summary of the modified graph
print(g.summary())
<|EOT|>
