Consider the following nodes with relationship [top_of]:
(n1)-[top_of]->(n2)-[top_of]->(n3)
(n4)-[top_of]->(n2)-[top_of]->(n5)
input will be a list of nodes like [n1,n3,n5]. In output, a node x from list will be removed if there is a path from anoth...