<｜begin▁of▁sentence｜>### Instruction:
As a cruise director, you want to use the information about the planned activities and excursions to create a schedule for the upcoming cruise. You have a list of the main activities and excursions with their details, as well as a list of connections showing which activities are related to each other. With this information, you need to use the Graph.DictList constructor from the igraph library to create a graph representing the relationships between the activities and excursions. Once the graph is created, you want to print a summary to see how the activities and excursions are connected and ensure everything is organized efficiently.
### Response:
from igraph import Graph

# Define the vertices with their attributes
vertices = [{'name': 'apple'}, {'name': 'pear'}, {'name': 'peach'}]

# Define the edges with the connections and attributes
edges = [
    {'source': 'apple', 'target': 'pear', 'weight': 1.2},
    {'source': 'apple', 'target': 'peach', 'weight': 0.9}
]

# Create the graph using the DictList constructor
g = Graph.DictList(vertices=vertices, edges=edges, directed=False, vertex_name_attr='name', edge_foreign_keys=('source', 'target'))

# Print the summary of the graph
print(g.summary())
<|EOT|>
