<｜begin▁of▁sentence｜>### Instruction:
Given a graph with 4 vertices and edges (0,1), (0,2), (1,2), (2,3), can you calculate the betweenness of vertex 0 using the Vertex.betweenness method in igraph?
### Response:
from igraph import Graph

# Creating an igraph graph with 4 vertices
# and adding edges
g = Graph(4)
g.add_edges([(0,1), (0,2), (1,2), (2,3)])

# Getting a Vertex instance for vertex 0
vertex = g.vs[0]

# Calculating betweenness of vertex 0
betweenness = vertex.betweenness()
print('Betweenness of vertex 0:', betweenness)
<|EOT|>
