max_flow
Find the maximum possible flow from a source to a sink in a directed graph, given edge capacities.
Instructions
Compute maximum flow in a capacitated directed graph.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"edges": "<edges>",
"source": "<source>",
"sink": "<sink>",
"capacities": "<capacities>"
},
"name": "max_flow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edges | Yes | ||
| source | Yes | ||
| sink | Yes | ||
| capacities | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||