I have simple nodes with integer ids. I just want to find the shortest path between to nodes given their id. I tried :
GRAPH.QUERY mygraph "MATCH p=(startnode)-[*]-(endnode) WHERE ID(startnode)=2 AND ID(endnode)=1 RETURN p"
or something with algo.BFS but no example is given
GRAPH.QUERY mygraph "CALL algo.BFS source-node YIELD redisnodes,redisedges"
But I didn't succeed. Is this feature available ?
This is one option (a bit expensive)
Another option would have to be
algo.BFS
but it will require additional client side processing.