shortest-path
Guide: /api/algorithms/graph/shortest-path
Signature
shortestPath(graph, from, to, strategy);
Params:
Name | Type | Required | Default | Description |
---|---|---|---|---|
graph | IGraph<T> | + | Given graph | |
from | T | + | Start of path | |
to | T | + | End of path | |
strategy | IGraphIterationStrategy<T> | + | BFS/Dijkstra |