Development
Decompose a directed or undirected graph with Tarjan's 1972 iterative SCC algorithm cross-checked against Kosaraju's two-pass; find articulation points and bridges via low-links; build the condensation DAG with a Kahn topological order; report cycles (nodes on cycles, self-loops) and depth-limited BFS/DFS traversals.
Call this tool from your code in three languages.
curl -X POST 'http://127.0.0.1:3003/en/api/tools/tarjan-scc-tarjan-bridge-and-strongly-connected-components-topological-order-graph-decomposer' \
-H 'Content-Type: application/json' \
-d '{"graphInput":"a -> b\nb -> c\nc -> a\nc -> d\nd -> c\ne -> a\nf -> e\nf -> g\ng -> f","directed":true,"startNode":"a","maxDepth":2}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST http://127.0.0.1:3003/en/api/tools/tarjan-scc-tarjan-bridge-and-strongly-connected-components-topological-order-graph-decomposer| Name | Type | Required | Description |
|---|---|---|---|
| graphInput | textarea | Yes | — |
| directed | checkbox | No | — |
| startNode | text | No | — |
| maxDepth | number | No | — |
HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-tarjan-scc-tarjan-bridge-and-strongly-connected-components-topological-order-graph-decomposer": {
"name": "tarjan-scc-tarjan-bridge-and-strongly-connected-components-topological-order-graph-decomposer",
"description": "Decompose a directed or undirected graph with Tarjan's 1972 iterative SCC algorithm cross-checked against Kosaraju's two-pass; find articulation points and bridges via low-links; build the condensation DAG with a Kahn topological order; report cycles (nodes on cycles, self-loops) and depth-limited BFS/DFS traversals.",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=tarjan-scc-tarjan-bridge-and-strongly-connected-components-topological-order-graph-decomposer",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "tarjan-scc-tarjan-bridge-and-strongly-connected-components-topological-order-graph-decomposer",
"arguments": {
"graphInput": "a -> b\nb -> c\nc -> a\nc -> d\nd -> c\ne -> a\nf -> e\nf -> g\ng -> f",
"directed": true,
"startNode": "a",
"maxDepth": 2
}
}
}Questions or issues? Contact [email protected]