I am using apoc.path methods to retrieve paths using BFS. I can obtain the count of nodes based on the configs from apoc.path. (number of hops to perform the searching) I would like to obtain statistics like the degree of certain nodes but only with the information retrieved from the path
For example, in the image below, I would like to know the degree of pink nodes regardless of they have more connections at deeper levels (3,4,etc hops). In the example below, the maximum degree from pink nodes would be 2 but maybe if I change the maxLevel parameter (deeper hops) the maximum degree could change.
Is there a way to do this with the information contained in the path? Like, make a query only in this path/subgraph?
I would appreciate any help!