graph_analyze
Analyze graph structure by counting nodes, edges, and connected components, calculating density and degrees, and detecting self-loops from an edge list.
Instructions
Analyze a graph: count nodes, edges, connected components, density, degrees, and detect self-loops.
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": "graph_analyze"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edges | Yes | Array of edges | |
| directed | No | Whether the graph is directed (default true) |