{"id":"graph-to-adjacency","version":"1.0.0","description":"Convert a directed simple graph into per-node outgoing adjacency lists.","supported_operations":["graph to adjacency","convert directed graph to adjacency lists","list outgoing successors per node"],"unsupported_operations":["incoming predecessor lists","adjacency matrix","weighted adjacency","undirected adjacency pairs"],"semantics":["Input is a directed simple graph: unique node ids and unique (from, to) edges whose endpoints exist in nodes.","Output adjacency contains one object per node, in declared node order.","Each successors array lists destination ids of that node’s outgoing edges in declared edge order.","A self-loop appears as the node id inside that node’s successors list.","Isolated nodes are present with an empty successors array.","Adjacency is an array of {node, successors} objects, not a string-keyed map, so prototype-like ids stay ordinary entries.","Empty input {nodes:[], edges:[]} yields {adjacency:[]}. Cycles are data and are not rejected."],"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,"uniqueItems":true,"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":["adjacency"],"properties":{"adjacency":{"type":"array","maxItems":2000,"items":{"type":"object","additionalProperties":false,"required":["node","successors"],"properties":{"node":{"type":"string","minLength":1,"maxLength":256},"successors":{"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}}}}}},"examples":[{"input":{"nodes":["build","test","lint","deploy"],"edges":[{"from":"build","to":"test"},{"from":"lint","to":"test"},{"from":"test","to":"deploy"},{"from":"build","to":"deploy"}]},"output":{"adjacency":[{"node":"build","successors":["test","deploy"]},{"node":"test","successors":["deploy"]},{"node":"lint","successors":["test"]},{"node":"deploy","successors":[]}]}}],"execute_url":"/v1/tools/graph-to-adjacency/versions/1.0.0/execute"}