<｜begin▁of▁sentence｜>### Instruction:
Given an Erdős-Rényi graph with 10 vertices where each edge is included with probability 0.5, can you use the Vertex.degree method in igraph to find the degree of the vertex at index 5?
### Response:
from igraph import Graph

# Create a simple undirected graph
g = Graph.Erdos_Renyi(n=10, p=0.5)

# Select a vertex by its index
vertex_index = 5
vertex = g.vs[vertex_index]

# Get the degree of the selected vertex
vertex_degree = vertex.degree()

# Print the degree of the vertex
print(f'Degree of vertex {vertex_index}: {vertex_degree}')
<|EOT|>
