graph-algorithms-mcp
v1.0.1Shortest paths, topological order and connected components for directed or undirected graphs
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
shortest_path
Find the cheapest path between two nodes with Dijkstra.
| Parameter | Type | Description |
|---|---|---|
edges * | array | Edges; weight defaults to 1 |
from * | string | Start node |
to * | string | End node |
directed | boolean | Treat edges as one-way |
topological_sort
Order a directed acyclic graph so every edge points forward.
| Parameter | Type | Description |
|---|---|---|
edges * | array | Directed edges |
connected_components
Group nodes into connected components.
| Parameter | Type | Description |
|---|---|---|
edges * | array | Edges to analyse |
directed | boolean | Follow edge direction |