What it does
Graph Algorithms gives you traversal, path, and graph-structure utilities for directed and undirected graphs. Send a graph with vertices and edges, then use the specific algorithm endpoint to get the result back in a compact JSON shape.
Use breadth-first search or depth-first search when you need the visit order from a chosen start vertex. Breadth-first search returns { start, visited }, while Depth-first search returns the same response shape with a different traversal strategy. For directed graphs, both follow edge direction; for undirected graphs, edges are treated as bidirectional.
Use Topological sort on a directed graph when you need an ordering of vertices in a DAG. It returns { order }, which is useful for dependency resolution, build pipelines, task scheduling, and other workflows where prerequisites must come before dependents.
For weighted directed graphs, Shortest path returns either a single { start, end, reachable, distance, path } result when you supply end, or a { start, paths } map of distances and paths to all reachable vertices. Minimum spanning tree returns the selected edges and totalWeight for a spanning tree covering the graph, and Distance matrix returns a symmetric or asymmetric matrix depending on whether the graph is undirected or directed. These endpoints fit graph analysis, routing logic, and operations planning where you need explicit paths or pairwise distances.