<｜begin▁of▁sentence｜>### Instruction:
As a receptionist, let's imagine that you are welcoming an office visitor who is looking for assistance with creating a line graph. In this scenario, the visitor provides you with a set of connections between different locations within the office building. They are seeking guidance on how to use the linegraph function in the igraph library to transform this data into a line graph and retrieve the vertices and edges of the resulting line graph.
### Response:
from igraph import Graph

edges = [(0, 1), (1, 2), (2, 3), (3, 4)]
original_graph = Graph(edges=edges)
line_graph = original_graph.linegraph()

print('Vertices of original graph:', original_graph.vs.indices)
print('Vertices of line graph:', line_graph.vs.indices)
print('Edges of line graph:', line_graph.get_edgelist())
<|EOT|>
