<｜begin▁of▁sentence｜>### Instruction:
Given a graph with vertices and edges defined as [(0, 1), (1, 2), (2, 3), (3, 4), (4, 0)], can you remove a vertex with a specific ID and an edge from the graph using Graph.__sub__ method in igraph?
### Response:
from igraph import Graph

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

# Remove a vertex with ID 3 and its associated edges
h = g - 3

# Remove an edge by specifying the edge tuple
h = h - (1, 2)

# Display the modified graph
print(h)
<|EOT|>
