set_edge_attributes
Set or update edge attribute values in a NetworkX graph by specifying source, target, attribute, and value, enabling custom metadata on specific edges.
Instructions
Set attributes on one or more edges
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>",
"attributes": "<attributes>"
},
"name": "set_edge_attributes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| graph | Yes | ||
| attributes | Yes | List of {source, target, attr, value} |