<｜begin▁of▁sentence｜>### Instruction:
Given a directed graph with 5 vertices and the edge set [(0,1), (0,2), (1,2), (2,3), (1,3), (3,4)], how can you use Graph.indegree to obtain the in-degree of each vertex?
### Response:
from igraph import Graph

# Create a directed graph
g = Graph(directed=True)
# Add 5 vertices to the graph
g.add_vertices(5)
# Add some edges
g.add_edges([(0,1), (0,2), (1,2), (2,3), (1,3), (3,4)])

# Get the in-degrees of all nodes
in_degrees = g.indegree()
print('In-degrees:', in_degrees)
<|EOT|>
