How to do Breadth-first Search in a Paginated Manner using Neo4J Cypher?
For example, I have the following vertices
Vertex A
, Vertex B1, B2, B3, ...., Bn
(m B vertices), Vertex C1, C2, C3, ..., Cn
(n C vertices) and Vertex D1, D2, D3, ..., Dn
(k D vertices)
Now A
is the root and A's children are all B vertices and for each B vertex there are n C vertices as children and finally for each C vertex there are K D vertices as children. so the direction is simply top to bottom.
Now I want to find out all the vertices starting from say Vertex C1 and do BFS in a paginated manner because the Graph is huge. any idea how to accomplish this using Cypher?