<｜begin▁of▁sentence｜>### Instruction:
Given an edgelist file 'edgelist.txt', how do you read the file to create an undirected graph using igraph and visualize it?
### Response:
import igraph as ig

# Assuming you have an edgelist file 'edgelist.txt'
# Create a graph by reading the edgelist
graph = ig.Graph.Read_Edgelist('edgelist.txt', directed=False)

# Use the 'plot' function to visualize the graph
ig.plot(graph, vertex_label=range(graph.vcount()))
<|EOT|>
