Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
03-10-2020 11:12 PM
03-11-2020 12:20 AM
With the below dataset
Merge(a:N{name:'A'})-[:Related_TO]->(b:N{name:'B'})-[:Related_TO]-(c:N{name:'C'})-[:Related_TO]->(d:N{name:'D'})
Merge(a:N{name:'A'})-[:Related_TO]->(b:N{name:'B'})-[:Related_TO]->(d:N{name:'D'})
Query Used
Match p=(a:N{name:$startNode})--(b:N{name:$endNode}) with a as a, nodes(p) as nodesInPath where $hopCount =size(nodesInPath) -2 return a,nodesInPath
:param hopCount=>1
:param startNode=>'A'
:param endNode=>'D'
All the sessions of the conference are now available online