How to find level 2 connections in neo4j?

My neo4j chart is shown below.
300 is connected to 100 and 100 is connected to 201 and 400 . <w> I want to know the second level of connection in neo4j. For example: 2nd level node for 300 should return me 201 and 400
Is this possible in neo4j?

enter image description here

enter image description here

when i use below cypher request:

MATCH (n) - [: CALLED * 2] - (result) WHERE n.name = '300' RETURN result
It should give me a total of 201 and 400, but it returns as below

enter image description here

+4
source share
1 answer

Neo4j. Cypher, - :

MATCH (n)-[:CALLED]-()-[:CALLED]-(result)
WHERE n.id = 300
RETURN result

, id - , , , , .

:

MATCH (n)-[:CALLED*2]-(result)
WHERE n.id = 300
RETURN result

, node # 200. , :

MATCH (n)-[:CALLED]->()<-[:CALLED]-(result)
WHERE n.id = 300
RETURN result

, node , .

+5

All Articles