This may require a bit of thinking but the idea I have currently is to make the values in the DijkstraResult type (see here) to be multiple DijkstraEntry objects all at the same node but with different previous nodes, costs, distances, etc. then we can add the first hop from each of those to the full list of next hops.
This may require a bit of thinking but the idea I have currently is to make the values in the
DijkstraResulttype (see here) to be multipleDijkstraEntryobjects all at the same node but with differentpreviousnodes, costs, distances, etc. then we can add the first hop from each of those to the full list of next hops.