<｜begin▁of▁sentence｜>### Instruction:
Imagine you are working as a scientific illustrator for a research team studying the interactions between different species in a localized ecosystem. The team has collected data on a network of 100 species and the probability of interactions between them. Your task is to visually represent the average degree of interaction for each species, taking into account the connections with their neighboring species. To accomplish this, the team uses the igraph library to analyze and visualize the network data.
### Response:
from igraph import Graph

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

# Calculate the average degree of the neighbors for each vertex
knn_values = g.knn()

# Display the average neighbor degree for each vertex
for idx, knn in enumerate(knn_values[0]):
    print(f'Vertex {idx}: Average neighbor degree = {knn}')
<|EOT|>
