Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は Java を使用しており、2 つのノード間の関係が存在するかどうかを確認し、存在する場合はエッジの重みを取得したいと考えています。1回のデータベース呼び出しでそれを行う方法はありますか? ありがとう
この場合、「可変長一致」 r は、通常の単一の関係ではなく、rel のコレクションになります。
start n1=node(1), n2=node(2) match shortestPath(n1-[r*]-n2) return extract(rel in r : r.weight)