ShortestPath
ShortestPath finds one shortest path between two nodes over a relation, counting steps:
var path = db.Query<IAttendee>()
.ShortestPath(a => a.Friends, fromNodeId: aliceId, toNodeId: zaraId, maxLevel: 6)
.Execute();
if (path.Found)
Console.WriteLine($"{path.Length} steps: " + string.Join(" → ", path.Nodes.Select(a => a.FullName)));Nodes and NodeIds run from the first node to the last, both included.