<｜begin▁of▁sentence｜>### Instruction:
Given an undirected graph with edge set [(0, 1), (0, 2), (1, 2), (2, 3), (3, 4)], can you use the transitivity_local_undirected function in igraph to calculate the local clustering coefficient for each vertex?
### Response:
import igraph as ig

# Create an undirected graph with some edges
g = ig.Graph(edges=[(0, 1), (0, 2), (1, 2), (2, 3), (3, 4)], directed=False)

# Calculate the local transitivity (clustering coefficient) for all vertices
transitivity_local = g.transitivity_local_undirected()

# Print the local transitivity for each vertex
for vertex_index, clustering_coeff in enumerate(transitivity_local):
    print(f'Vertex {vertex_index}: Transitivity = {clustering_coeff}')
<|EOT|>
