add_edge
Adds a connection between two nodes in a NetworkX graph, with optional ordering and conditional logic for state and decision modeling.
Instructions
Add an edge with order and optional condition.
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_id": "<graph_id>",
"from": "<from>",
"to": "<to>"
},
"name": "add_edge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| graph_id | Yes | ||
| from | Yes | ||
| to | Yes | ||
| order | No | ||
| condition | No | ||
| properties | No |