cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Difference / Intersect of paths

Michel
Node Clone

Hi,

is there any function for getting 

  1. difference of two paths and
  2. intersect of several paths ?

Thanks a lot in advance,

 

Michel

 

1 ACCEPTED SOLUTION

Hello @Michel 😊

You can use the apoc.path.elements() function to get path elements, nodes() function to get path nodes and relationships() function to get path relationships. Then you can use functions from apoc.coll to get what you desire.

Regards,
Cobra

View solution in original post

2 REPLIES 2

Hello @Michel 😊

You can use the apoc.path.elements() function to get path elements, nodes() function to get path nodes and relationships() function to get path relationships. Then you can use functions from apoc.coll to get what you desire.

Regards,
Cobra

Michel
Node Clone

Dear @Cobra , thanks a lot !