<｜begin▁of▁sentence｜>### Instruction:
Given a simple Erdős–Rényi graph with 5 vertices, how would you calculate a star-like layout for the graph using 'layout_star' method with the first vertex as the center, and then plot the resulting layout, assuming vertex labeling from 0 to (n-1)?
### Response:
from igraph import Graph

# Create a simple graph with 5 vertices
graph = Graph.Erdos_Renyi(n=5, p=0.5)

center_vertex = 0  # ID of the center vertex
vertex_order = None  # Automatically orders vertices by ID

# Calculate the star-like layout
layout = graph.layout_star(center=center_vertex, order=vertex_order)

# Plot the graph using the star-like layout
igraph.plot(graph, layout=layout, vertex_label=range(graph.vcount()))
<|EOT|>
