<｜begin▁of▁sentence｜>### Instruction:
As an SEO specialist, imagine you have a graph representing the links between different web pages on a website. The edges in the graph represent the links between pages, and the vertices represent the individual pages. Now, you need to delete a specific page (vertex) and all the links associated with it from the graph. How would you accomplish this task using the NetworkX API for graph manipulation?
### Response:
from igraph import Graph

# Create a graph
g = Graph([(0, 1), (1, 2), (2, 3)])

# Delete vertex with index 1
g.delete_vertices(1)

# Print the updated graph
g.vs['name'] = range(g.vcount())  # optional: rename vertices
print(g)
<|EOT|>
