I am learning about APOC spanning trees and about paths and have a question or two that I haven't been able to figure out from the documentation I've been reading/watching.
When I call my apoc spanning tree, currently I'm using the "yield path, return path" ending, because that's all I understand how to do so far (just beginning). It's been successful in returning to me all of the nodes that I wanted and all of the properties on those nodes. If, however, I am only interested in returning certain properties of each of the nodes that are returned within the path, is there a way for me to narrow it down? I feel comfortable doing this on a set of nodes, but not sure how it works with a path of nodes.
I would like to be able to capture the path length, as well as the ordinal position of each node within a particular path, regardless of the length of the path. So for example, if the shortest path is 25 hops, I'd like to know that, and I'd like to be able to see a list of the nodes, their assigned ids(a property I've given), as well as their position (1st-25th) on the path. Is there any documentation someone could point me to so I could figure this out?
Any insight would be appreciated!