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为例。