Hi there,

Here is a good example for this question - 
https://neo4j.com/developer/kb/all-shortest-paths-between-set-of-nodes/

but seems this is satisfy for the certain Label, for example "Entity" in 
the example cypher query.

But how to use this for multiple labels?


MATCH (n:Entity) where n.name IN {IDS}
WITH collect(n) as nodes
UNWIND nodes as n
UNWIND nodes as m
WITH * WHERE id(n) < id(m)
MATCH path = allShortestPaths( (n)-[*..4]-(m) )
RETURN path


where I need to pass the IDS parameters with different labels


Thanks in advanced.

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to