I'm trying to find a generic way to search for a node or set of nodes which does not have a link to a another node or set of nodes.
As an example, I was able to find all the nodes of a specific type (e.g. :Style
) which are connected somehow to a specific set of nodes (e.g. :MetadataRoot
), with the following:
match (root:MetadataRoot),
(n:Style),
p=shortestPath((root)-[*]-(n))
return p
Using this, I was able to subtract the set of all :Style
nodes from the nodes returned by the above query, but that doesn't seem like the best way to go about this.