I want to get all vertices from graph,as shown below
a -> b -> c -> d -> e -> f -> ...
b2 -> c2 -> cd -> ....
I want to get all vertices, and use syntax like:
[WITH vertexCollection1[, vertexCollection2[, ...vertexCollectionN]]]
FOR vertex[, edge[, path]]
IN [min[..max]]
OUTBOUND|INBOUND|ANY startVertex
GRAPH graphName
[PRUNE pruneCondition]
[OPTIONS options]
as you can see, I have to define the value of max first( IN [min[..max]]
), how can I get all vertices without providing a value for max when the depth is unknown?