<｜begin▁of▁sentence｜>### Instruction:
Given a graph with vertices labeled 'A', 'B', and 'C', connected as [('A', 'B'), ('B', 'C')], can you export the graph to two lists of dictionaries where vertices are labeled by their 'label' attribute?
### Response:
import igraph as ig

# Create a graph
vertices = ['A', 'B', 'C']
edges = [(0, 1), (1, 2)]
g = ig.Graph(edges=edges)
g.vs['label'] = vertices  # Assign labels to the vertices

# Export graph to two lists of dictionaries
vertices_list, edges_list = g.to_dict_list(use_vids=False, vertex_name_attr='label')

# Print the results
print('Vertices:', vertices_list)
print('Edges:', edges_list)
<|EOT|>
