<｜begin▁of▁sentence｜>### Instruction:
As a networkx expert, I can help you with this. In a practical scenario, let's say you are managing a transportation network for a city, and you need to modify the road network.

You have a graph representing the road network with vertices and edges. The vertices are locations in the city, and the edges represent the roads connecting them. Now, you need to remove a specific intersection (vertex) and a road segment (edge) from the network due to maintenance or construction work.

The graph will contain the information about the intersections (vertices) and road segments (edges) that need to be modified. Using the methods available in networkx, you can remove the specific intersection (vertex) along with the associated road segment (edge) from the graph.

This ensures that the road network accurately reflects the changes being made while maintaining the overall connectivity and structure of the transportation network.
### 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|>
