<｜begin▁of▁sentence｜>### Instruction:
Given a graph with edge set [(0, 1), (0, 2), (1, 2), (1, 3), (2, 3), (3, 4), (4, 5), (4, 6), (5, 7), (5, 6)], can you calculate the structural diversity index of each vertex?
### Response:
from igraph import Graph

# Create a graph with an edge list
edges = [(0, 1), (0, 2), (1, 2), (1, 3), (2, 3), (3, 4), (4, 5), (4, 6), (5, 7), (5, 6)]
g = Graph(edges=edges)

# Calculate the structural diversity of each vertex
diversity = g.diversity()

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