<｜begin▁of▁sentence｜>### Instruction:
Given an edge list in a file named 'edges.txt', can you use the Read_Edgelist function in igraph to create a graph, specifying whether the graph is directed or not?
### Response:
import igraph as ig

# Read the edge list from a file to create a graph
data_file = 'edges.txt'  # The file containing the edge list
directed = True  # Specify if the graph is directed or not

# Create the graph from the edge list
graph = ig.Graph.Read_Edgelist(data_file, directed=directed)

# Plot the graph
ig.plot(graph)
<|EOT|>
