How to calculate rank for float values in Neo4j?
问题 I am calculating a set of paths using apoc.algo.dijkstra. My goal is to assign a rank to each of the suggested paths. Important is all the weights among nodes are floats. Cypher code: ... WITH origin, target CALL apoc.algo.dijkstra(origin, target, 'link', 'Weight') yield path as path, weight as weight ... what I have now: Path 1 - Weight: 1.2344332423 Path 2 - Weight: 0.8432423321 Path 3 - Weight: 0.9144331653 Something what I need is: rank: 1, weight: 1.2344332423 rank: 2, weight: 0