<｜begin▁of▁sentence｜>### Instruction:
Given a graph with 10 nodes and 15 edges, can you use the Vertex.pagerank() function in igraph to calculate the PageRank of vertex 2 and display it?
### Response:
from igraph import Graph

# Create a graph
g = Graph.Erdos_Renyi(n=10, m=15)

# Calculate PageRank for all vertices
g_pagerank = g.pagerank()

# Get the PageRank of vertex 2
vertex_pagerank = g.vs[2].pagerank()

# Display the PageRank of vertex 2
print(f'PageRank of vertex 2: {vertex_pagerank}')
<|EOT|>
