{"id":"graph-reverse","version":"1.0.0","description":"Reverse every directed edge of a simple graph, keeping node order and original edge order.","supported_operations":["graph reverse","reverse every directed edge","transpose a directed graph"],"unsupported_operations":["reversing a subset of edges","transpose of adjacency matrix export","undirected reverse","weighted edge reverse"],"semantics":["Input is a directed simple graph with unique node ids and unique (from, to) edges.","Output nodes is the input node array unchanged, including declared order.","Each output edge is {from: old.to, to: old.from} in the original declared edge order.","Self-loops stay as self-loops.","Cycles are allowed; this tool does not reject them.","The reverse remains a simple graph because the original already forbade duplicate (from, to) pairs."],"limits":{"max_nodes":2000,"max_edges":10000,"max_node_id_bytes":256},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["nodes","edges"],"properties":{"nodes":{"type":"array","maxItems":2000,"items":{"type":"string","minLength":1,"maxLength":256}},"edges":{"type":"array","maxItems":10000,"items":{"type":"object","additionalProperties":false,"required":["from","to"],"properties":{"from":{"type":"string","minLength":1,"maxLength":256},"to":{"type":"string","minLength":1,"maxLength":256}}}}}},"output_schema":{"type":"object","additionalProperties":false,"required":["nodes","edges"],"properties":{"nodes":{"type":"array","maxItems":2000,"items":{"type":"string","minLength":1,"maxLength":256}},"edges":{"type":"array","maxItems":10000,"items":{"type":"object","additionalProperties":false,"required":["from","to"],"properties":{"from":{"type":"string","minLength":1,"maxLength":256},"to":{"type":"string","minLength":1,"maxLength":256}}}}}},"examples":[{"input":{"nodes":["build","test","deploy"],"edges":[{"from":"build","to":"test"},{"from":"test","to":"deploy"},{"from":"build","to":"deploy"}]},"output":{"nodes":["build","test","deploy"],"edges":[{"from":"test","to":"build"},{"from":"deploy","to":"test"},{"from":"deploy","to":"build"}]}}],"execute_url":"/v1/tools/graph-reverse/versions/1.0.0/execute"}