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.
指定された2つのノード間の関係を取得したいのですが、プログラム用のカスタム関数を書いたことがありますが、これを行うことができる公式のAPIがあるかもしれませんので、APIを知っている場合は教えてください. 第3四半期...
Cypher の例では、@Pangea を 2 番目に使用します。
Java API では、次のようにします。
for (Relationship r : n1.getRelationships()) { if (r.getOtherNode(n1).equals(n2)) return r; }
関係が少ないことがわかっているノードから開始します。これは、Neo4j 2.1 で変更される可能性があります。