<｜begin▁of▁sentence｜>### Instruction:
Given an Erdős-Rényi graph with 10 vertices and 15 edges, how do you use the Layout.centroid function in igraph to calculate the centroid of the graphical layout generated by the Kamada-Kawai layout algorithm?
### Response:
from igraph import Graph

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

# Generate the layout
layout = graph.layout('kk')

# Get the centroid of the layout
centroid = layout.centroid()

# Print the centroid
print('Centroid of the layout:', centroid)
<|EOT|>
