<｜begin▁of▁sentence｜>### Instruction:
Given a graph created with 5 vertices and edges connecting vertex number 0 to all other vertices, how can you delete a vertex (e.g., vertex number 3) using the igraph Vertex object's delete method?
### Response:
from igraph import Graph
import igraph as ig

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

# Assume we want to delete vertex number 3
vertex_id_to_delete = 3

# Before deletion, list of edges
print('Edges before deletion:', g.get_edgelist())

# Getting the vertex based on its ID and deleting it
vertex_to_delete = g.vs[vertex_id_to_delete]
vertex_to_delete.delete()

# After deletion, list of edges
print('Edges after deletion:', g.get_edgelist())
<|EOT|>
