Graph dependency impact

graph-dependency-impact · version 1.0.0 · Graphs & scheduling · free, no key needed

List nodes downstream of a removed set: not themselves removed, reachable by a directed path of length at least 1.

Use when you need to: graph dependency impact · downstream impact of removed nodes · nodes affected by removing dependencies.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "nodes": [
    "fetch",
    "compile",
    "lint",
    "test",
    "package",
    "deploy"
  ],
  "edges": [
    {
      "from": "fetch",
      "to": "compile"
    },
    {
      "from": "fetch",
      "to": "lint"
    },
    {
      "from": "compile",
      "to": "test"
    },
    {
      "from": "compile",
      "to": "package"
    },
    {
      "from": "lint",
      "to": "package"
    },
    {
      "from": "test",
      "to": "deploy"
    },
    {
      "from": "package",
      "to": "deploy"
    }
  ],
  "removed": [
    "compile"
  ]
}

Response:

{
  "result": {
    "impacted": [
      "test",
      "package",
      "deploy"
    ],
    "impacted_count": 3
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "graph-dependency-impact",
  "version": "1.0.0",
  "input": {
    "nodes": [
      "fetch",
      "compile",
      "lint",
      "test",
      "package",
      "deploy"
    ],
    "edges": [
      {
        "from": "fetch",
        "to": "compile"
      },
      {
        "from": "fetch",
        "to": "lint"
      },
      {
        "from": "compile",
        "to": "test"
      },
      {
        "from": "compile",
        "to": "package"
      },
      {
        "from": "lint",
        "to": "package"
      },
      {
        "from": "test",
        "to": "deploy"
      },
      {
        "from": "package",
        "to": "deploy"
      }
    ],
    "removed": [
      "compile"
    ]
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/graph-dependency-impact/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"nodes":["fetch","compile","lint","test","package","deploy"],"edges":[{"from":"fetch","to":"compile"},{"from":"fetch","to":"lint"},{"from":"compile","to":"test"},{"from":"compile","to":"package"},{"from":"lint","to":"package"},{"from":"test","to":"deploy"},{"from":"package","to":"deploy"}],"removed":["compile"]}'

The machine-readable contract is at /v1/tools/graph-dependency-impact/versions/1.0.0.

CLI

node cli.mjs run graph-dependency-impact 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.