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.

Pattern matching

Hello everyone,

I am doing some tests with the fraud sandbox of Neo4j, and starting with the following query:
MATCH (n1:Transfer) -[:NEXT*2..10]- (n2: Transfer) RETURN * LIMIT 20
I would like to figure out which of these chains of Transfer nodes are connected to the same bank, i.e. filter the result of the previous query, showing only those subset that are connected to the same Bank node (each chain can connect to a different bank).

This is the result of the query above:

Can anyone help me?

Thank you very much in advance

0 REPLIES 0