has-path
Guide: /guide/algorithms/graph/has-path
Signature
hasPath(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/DFS/Dijkstra |
data-structures
Boolean