<｜begin▁of▁sentence｜>### Instruction:
Given a simple undirected graph with edges connecting vertex 0 to 1, vertex 1 to 2, and vertex 2 to 3, can you use the linegraph function in igraph to calculate its line graph?
### Response:
from igraph import Graph

# Create a simple undirected graph with 3 edges
original_graph = Graph.Edges([(0, 1), (1, 2), (2, 3)])

# Compute the line graph
line_g = original_graph.linegraph()

print(line_g)
print(line_g.get_edgelist())
<|EOT|>
