Thanks @Cobra actually didn't know about this. That does get a bit further.. it allows me to get the list of edges data, but not any data on in-between nodes.
eg I can get
{startNode},
[ {edge}, {edge}, {edge} ... ]
{ endNode }
The benefit of the patterns like -[*..2]-
is that I can have a varying number of edges AND nodes.
What I really want is just a sequence of objects, of varying types, eg:
[
[ {node}-{edge}-{node} ], // first path
[ {node}-{edge}-{node}-{edge}-{node} ] // longer path
]
Which is exactly what I see in the neo browser in the table view as 'segments'
I'm confused why cypher queries return one type of data structure in the neo-browser, but completely different and less useful data when run from the python driver?
Do I need to use subgraphs or something more complex?