maximum_flow
Analyze a directed graph to compute the maximum possible flow from a source node to a sink node considering edge capacities.
Instructions
Calculate maximum flow in a 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": {
"graph": "<graph>",
"source": "<source>",
"sink": "<sink>"
},
"name": "maximum_flow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sink | Yes | ||
| graph | Yes | ||
| source | Yes | ||
| capacity | No | capacity |