Hi @johan-l,
Thanks for your questions. I will try to answer them below.
The query which I suggested will be computation intensive. Internally it will try to either find the number off paths you asked for or continue until it visits all the nodes in the process. See runKshortestPaths.
There are two shortest path functions implemented internally: shortestPath and runKshortestPaths. The former returns one path and the latter returns (or tries to return) total numPaths in ascending order of the distance . I do know understand how would pagination work here.