<｜begin▁of▁sentence｜>### Instruction:
Given a graph generated with the Erdős-Rényi model of n=30 nodes and p=0.2 probability of edge creation, can you plot this graph using the Fruchterman-Reingold layout algorithm?
### Response:
from igraph import Graph

# Create a sample graph
g = Graph.Erdos_Renyi(n=30, p=0.2)

# Apply the Fruchterman-Reingold layout algorithm
layout = g.layout_fruchterman_reingold()

# Plot the graph with the specified layout
ig.plot(g, layout=layout, target='fr_layout.png')
<|EOT|>
