<｜begin▁of▁sentence｜>### Instruction:
As a Security Analyst, you are tasked with monitoring and analyzing potential security threats and vulnerabilities to safeguard computer networks and systems. You have been provided with a graph generated using the Erdős-Rényi model, consisting of 30 nodes and a probability of edge creation set at 0.2. You are required to visualize this graph using the Fruchterman-Reingold layout algorithm to gain insights into its structure and connections.
### 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|>
