I have created a graph of applications talking to each other. There are few roots nodes which do not have any incoming edges and few leaves who do now have any outgoing edges. Other nodes are part of branches via which application talk to each other.
I wrote a CYPHER query to identify the pattern of nodes which do not have any out going edges, meaning leaves of the graph. But no getting any result.
Have attached the screen shot of the graph and also the query for leaves. Please suggest what am I doing wrong.
Query for identifying leaves:
MATCH (x:App)-[r:TALKS_TO]->(y:App) WHERE not((x)-->()) return (x)
Result: (no changes, no records)
Thanks,
Ashish