The graph schema I have is (actors)-[:ACTED_IN]->(movies)
.
I know how to find actors who have worked with a particular actor as below:
MATCH (actor {name:"Tom Hanks"} )-[:ACTED_IN]->(movies)<-[:ACTED_IN]-(costars)
return distinct costars;
I know how to find all the actors who have worked in some movie:
MATCH (all_actor)-[:ACTED_IN]->(movies) return distinct all_actor;
However I don't know how to find all actors not in costars. How do I go about it?