<｜begin▁of▁sentence｜>### Instruction:
As a cryptographer, you may need to calculate degrees of vertices in a graph for analyzing network security. Suppose you have a network topology with the following edge set: [(0, 1), (1, 2), (2, 3), (3, 0), (1, 3)]. You are required to use the 'degree' function in the igraph API to determine the degree of vertex 1 and obtain the degrees of all vertices in the graph for further analysis within your cryptographic protocols.
### Response:
import igraph as ig

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

# Get the degree of vertex 1
degree_of_vertex_1 = g.degree(1)

# Print the degree of vertex 1
print('Degree of vertex 1:', degree_of_vertex_1)

# Get the degrees for all vertices
degrees = g.degree()

# Print the degrees for all vertices
print('Degrees for all vertices:', degrees)
<|EOT|>
