<｜begin▁of▁sentence｜>### Instruction:
As an Artificial Intelligence Ethicist, you might encounter a scenario where you have to assess the impact of a network on a specific node. Suppose you are analyzing a social network and want to understand the level of influence a particular person has in a social circle. In this case, determining the degree of the vertex with index 1 in the graph would be similar to understanding the number of connections or relationships that the individual represented by vertex 1 has within the social network.
### Response:
import igraph as ig

# Create a simple undirected graph
g = ig.Graph([(0,1), (1,2), (2,3), (3,1)])

# Select a vertex with index 1
vertex = g.vs[1]

# Use the degree method on the selected vertex
degree = vertex.degree()

# Print the degree of the vertex
print('Degree of vertex 1:', degree)
<|EOT|>
