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.
neo4j の加重グラフについて質問があります。プロパティ (".setProperty("cost", weight)" など) は、加重グラフを作成する唯一の方法です。問題は、キャストに時間がかかるため、「(Double) rel.getProperty("cost")」による重み付けを頻繁に必要とするプログラムが遅くなりすぎることです。
実際には、より高速なリレーションシップ タイプに重みをエンコードできます。
create a-[:`KNOWS_0.34`]->b
例としてhttp://console.neo4j.org/r/2dez98 。