Overview
Shortest paths between two nodes are those containing the fewest number of edges (unweighted shortest path search). In GQL, shortest paths are retrieved using specialized path selectors applied to quantified paths.
When a shortest path selector is used, RageDB's query engine performs a trail-based Breadth-First Search (BFS) where repeated edges are prohibited (the path mode defaults to TRAIL).
To minimize a weighted sum of edge costs (such as mana cost) rather than hop counts, see Cheapest Paths.