<｜begin▁of▁sentence｜>### Instruction:
Given a graph with 5 vertices and edges connecting in a path from vertex 0 to 4, can you remove vertex 3 (note that the remaining vertices get reindexed) and the edge from vertex 1 to 2 to modify the original graph?
### Response:
from igraph import Graph

# Create a graph with 5 vertices and some edges
g = Graph(edges=[(0, 1), (1, 2), (2, 3), (3, 4)])
print('Original Graph:', g)

# Remove a vertex by ID
g -= 3
print('Graph after removing vertex 3:', g)

# Remove an edge by passing a tuple (start_vertex, end_vertex)
g -= (1, 2)
print('Graph after removing edge (1, 2):', g)
<|EOT|>
