<｜begin▁of▁sentence｜>### Instruction:
Given a graph which you can read from network.gml, can you use the 'diversity' function in igraph to calculate the structural diversity index of the vertices? You need to print the structural diversity index for each vertex.
### Response:
import igraph as ig

# Load a graph from a file
graph = ig.read('network.gml')

# Calculate the structural diversity index of each vertex
vertex_diversity = graph.diversity()

# Print the structural diversity of each vertex
for idx, diversity in enumerate(vertex_diversity):
    print(f'Vertex {idx}: Structural Diversity Index = {diversity}')
<|EOT|>
