I used network management graph below:
< Neo4j Browser >
match (m:Machine{name:'DC1-RCK-1-2-M-79'}), (m2:Machine{name:'DC1-RCK-1-4-M-45'})
match path = shortest 2 (m)-[:!TYPE]-+(m2)
where not any(node in nodes(path) where 'DataCenter' in labels(node) or 'Version' in labels(node))
return path
< Bloom Scene Action >
match (m) where elementId(m) in $nodes
match (m2) where elementId(m2) in $nodes
match path = shortest 2 (m)-[:!TYPE]-+(m2)
where not any(node in nodes(path) where 'DataCenter' in labels(node) or 'Version' in labels(node))
return path
If I use "shortest 1", there is no result found. I cannot understand it. There must be a shortest result?