<｜begin▁of▁sentence｜>### Instruction:
Given an Erdős-Rényi graph with 100 vertices and a connection probability of 0.1, can you calculate the assortativity coefficient based on vertex degrees, considering the graph as undirected?
### Response:
from igraph import Graph

# Create a simple graph
g = Graph.Erdos_Renyi(n=100, p=0.1)

# Calculate the assortativity based on vertex degrees
assortativity_coefficient = g.assortativity_degree(directed=False)
print('Assortativity coefficient:', assortativity_coefficient)
<|EOT|>
