<｜begin▁of▁sentence｜>### Instruction:
As a personal chef, imagine you are preparing a series of dishes with specific ingredients and following a set of recipes. Each ingredient represents a pathway in a directed graph, and its quantity corresponds to the capacity of the pathway. The recipes represent the flow of ingredients from the source (your kitchen pantry) to the target (the dining room). How would you determine the maximum flow of ingredients from your pantry to your dining room using your customized "Chef's Maxflow" tool? This tool's API is based on igraph's maxflow function and accepts a list of edges and corresponding capacities to calculate the maximum flow.
### Response:
import igraph as ig

# Define the edge list and capacities
capacities = [10, 20, 10, 5, 15, 10, 5, 15, 5, 10]
edges = [(0, 1), (0, 2), (1, 2), (1, 3), (2, 3), (2, 4), (3, 4), (3, 5), (4, 5)]

g = ig.Graph(edges=edges, directed=True)
g.es['capacity'] = capacities

source = 0
target = 5
max_flow = g.maxflow(source, target, capacity='capacity')
print('Maximum flow value from source to target is:', max_flow.value)
<|EOT|>
