util_graph
Graph analysis (shortest path, components, centrality) — Analyze any network from an edge list. edges=from,to[,weight];... (directed=true for one-way edges; nodes= adds isolated nodes). Returns density, degrees, connected components (strongly connected + cycle detection + topological order for directed graphs), bipartite check and minimum spanning tree (undirected), diameter/radius/center, average shortest path, top betweenness, closeness, PageRank and degree. from= gives distances to every node; from= + to= gives the shortest path (Dijkstra, or Bellman-Ford with negative weights and negative-cycle detection). Offline; up to 1,000 nodes / 5,000 edges (centrality on smaller graphs). Useful for dependency graphs, routing, org charts, service maps. Price: $0.003 USDC (Base, via x402).
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": {
"edges": "<edges>"
},
"name": "util_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edges | Yes | A,B,4;B,C,1;A,C,7;C,D,2;D,E,3;B,E,9 |