<｜begin▁of▁sentence｜>### Instruction:
Given a graph loaded from 'simple_graph.gml', can you use the igraph plot function to create an image of the graph and save it to 'graph_plot.png'? And then save another plot of the same graph with adjusted opacity to 'graph_with_opacity.png'?
### Response:
import igraph as ig

# Load a graph from a file
path_to_gml = 'simple_graph.gml'
g = ig.Graph.Read_GML(path_to_gml)

# Plot the graph
ig.plot(g, target='graph_plot.png', bbox=(300, 300), margin=10)

# Plot the graph with adjusted opacity
igraph.plot(g, target='graph_with_opacity.png', bbox=(300, 300), margin=10, opacity=0.5)
<|EOT|>
