graph-algorithms-mcp

v1.0.1
io.github.mrfentmen/graph-algorithms-mcp Checked 1 day ago Published 24 days ago

Shortest 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.

ParameterTypeDescription
edges *arrayEdges; weight defaults to 1
from *stringStart node
to *stringEnd node
directedbooleanTreat edges as one-way

topological_sort

Order a directed acyclic graph so every edge points forward.

ParameterTypeDescription
edges *arrayDirected edges

connected_components

Group nodes into connected components.

ParameterTypeDescription
edges *arrayEdges to analyse
directedbooleanFollow edge direction