Graph Traversals
Shortest Path
Find the shortest path between two nodes using Breadth-First Search.
ShortestPath
Find the shortest path between two nodes.
Example:
Return Type of ShortestPath
:
Note that this is an array of tuples because you can find the shortest path from one node to multiple nodes or vice versa.