Api Endpoint

Graph Algorithms

Graph statistics: degree sequence, density, bipartite check, tree or forest test, and diameter if connected.

Open interactive test console

Offering

Provider
graph-algorithms.x402tookit.com
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://graph-algorithms.x402tookit.com/graph-stats
MIME type
application/json
First seen
2026-11-05T17:27:29.627Z
Last seen
Tags
graph, degree, bipartite, diameter

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.02 USDC
Atomic price: 20000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 2
0.02 USDC
Atomic price: 20000 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: USDC · Scheme: exact
Payment option 3
0.02 USDC
Atomic price: 20000 · Network: eip155:137 · Asset: USDC · Scheme: exact
Payment option 4
0.02 USDC
Atomic price: 20000 · Network: eip155:42161 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "20000",
    "payTo": "0xb531320805C5BED1D46AEaDcF4F008FDF172DBDa"
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "20000",
    "payTo": "DUPiupXtuox38dcGoXUKer5mAydCzmaHjrbQ66qeEm8s"
  },
  {
    "scheme": "exact",
    "network": "eip155:137",
    "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
    "amount": "20000",
    "payTo": "0xb531320805C5BED1D46AEaDcF4F008FDF172DBDa"
  },
  {
    "scheme": "exact",
    "network": "eip155:42161",
    "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
    "amount": "20000",
    "payTo": "0xb531320805C5BED1D46AEaDcF4F008FDF172DBDa"
  }
]

Observed health

Status
Healthy
Latest latency
455 ms
Average latency
198 ms
HTTP status
402
Last checked
Reachability
100% over 8 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "edges": {
          "type": "string",
          "description": "Edges separated by ; or newline, each 'from,to' or 'from,to,weight' (default weight 1), or a JSON array of [from,to,weight]; up to 200 nodes, 1000 edges, 60000 characters; node names 1-32 characters of letters, digits, _ . : + - (weights ignored)"
        },
        "nodes": {
          "type": "string",
          "description": "Optional extra node names (comma or space separated) so isolated nodes are counted; the total still counts toward the 200-node cap"
        },
        "directed": {
          "type": "boolean",
          "description": "false (default). true reports in/out degrees and directed density; structure tests then use the undirected skeleton"
        }
      },
      "required": [
        "edges"
      ]
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "example": {
      "type": "object",
      "properties": {
        "verdict": {
          "type": [
            "null",
            "string"
          ]
        },
        "summary": {
          "type": [
            "null",
            "string"
          ]
        },
        "reasons": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "nodeCount": {
          "type": [
            "null",
            "number"
          ]
        },
        "edgeCount": {
          "type": [
            "null",
            "number"
          ]
        },
        "directed": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "selfLoops": {
          "type": [
            "null",
            "number"
          ]
        },
        "parallelEdges": {
          "type": [
            "null",
            "number"
          ]
        },
        "isSimple": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "degreeSequence": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "number"
          }
        },
        "minDegree": {
          "type": [
            "null",
            "number"
          ]
        },
        "maxDegree": {
          "type": [
            "null",
            "number"
          ]
        },
        "averageDegree": {
          "type": [
            "null",
            "number"
          ]
        },
        "isRegular": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "isolatedNodes": {
          "type": [
            "array",
            "null"
          ]
        },
        "degrees": {
          "type": [
            "null",
            "object"
          ],
          "properties": {
            "0": {
              "type": [
                "null",
                "number"
              ]
            },
            "1": {
              "type": [
                "null",
                "number"
              ]
            },
            "2": {
              "type": [
                "null",
                "number"
              ]
            },
            "3": {
              "type": [
                "null",
                "number"
              ]
            },
            "4": {
              "type": [
                "null",
                "number"
              ]
            },
            "5": {
              "type": [
                "null",
                "number"
              ]
            },
            "6": {
              "type": [
                "null",
                "number"
              ]
            },
            "7": {
              "type": [
                "null",
                "number"
              ]
            },
            "8": {
              "type": [
                "null",
                "number"
              ]
            },
            "9": {
              "type": [
                "null",
                "number"
              ]
            }
          }
        },
        "density": {
          "type": [
            "null",
            "number"
          ]
        },
        "connectedComponents": {
          "type": [
            "null",
            "number"
          ]
        },
        "isConnected": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "isBipartite": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "bipartition": {},
        "oddCycleEdge": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "isTree": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "isForest": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "hasCycle": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "diameter": {
          "type": [
            "null",
            "number"
          ]
        },
        "radius": {
          "type": [
            "null",
            "number"
          ]
        },
        "averageShortestPathLength": {
          "type": [
            "null",
            "number"
          ]
        },
        "degraded": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "notChecked": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "source": {
          "type": [
            "null",
            "string"
          ]
        },
        "asOf": {
          "type": [
            "null",
            "string"
          ]
        },
        "disclaimer": {
          "type": [
            "null",
            "string"
          ]
        }
      }
    }
  },
  "required": [
    "type"
  ]
}