cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! Site maintenance this Wednesday, February 1. Disruptions expected as we migrate the forums.

Find the shortest Path in a graph excluding a relationship with a certain paramater

Hi everyone,

I am trying to find the shortest path in a graph but need to exclude some relationship between nodes.

I tried and search a lot but still can't find how to do it. A tried like said the Neo4j's documentation but it didn't take in consideration the relationship property

< MATCH (start:COMPOSANT{name:'IPAD'}),(end:COMPOSANT{name:'IPHONE'})
CALL algo.shortestPath.stream(start,end,'cost',{relationshipQuery:"Match (n)-[re:BOUND{constrain:'NONE'}]-(m) return id(n) AS source, id(m) AS target, r.cost AS weight"})
YIELD nodeId, cost
RETURN algo.getNodeById(nodeId) />

Thanks for your help !

0 REPLIES 0