Neo4j Shortest Path for specific node labels in-between the path
问题 I'm looking for a hint to solve the following issue: Given a Neo4j DB with two node types applied as labels :Address and :Milestone (one for each node) Between the different nodes there are directed :LEADS_TO relationships. Given the following pattern (I skipped the [ ] for the relations): Pattern 1: (a:Address)->(:Milestone)->(:Milestone)<-(:Milestone)<-(:Milestone)<-(b:Address) Pattern 2: (a:Address)->(:Milestone)->(c:Address)<-(:Milestone)<-(b:Address) I'm looking for a query that only