CALL apoc.algo.community(25,null,‘partition’,‘X’,‘OUTGOING’,‘weight’,10000) 这个语句中的各项参数该怎么用?能举个例子吗,感激不尽
https://neo4j-contrib.github.io/neo4j-apoc-procedures/
The example call with scan all nodes 25 times. During a scan the procedure will look at all outgoing relationships of type :X for each node n. For each of these relationships, it will compute a weight and use that as a vote for the other node’s ‘partition’ property value. Finally, n.partition is set to the property value that acquired the most votes.
Weights are computed by multiplying the relationship weight with the weight of the other nodes. Both weights are taken from the ‘weight’ property; if no such property is found, the weight is assumed to be 1.0. Similarly, if no ‘weight’ property key was specified, all weights are assumed to be 1.0.
@zhelunwu 文档当然是看过了,还是不会用,就拿https://bigdata-ny.github.io/2016/08/12/graph-of-thrones-neo4j-social-network-analysis/ 这上面的例子来说吧,函数里的参数怎么用?
算法相关建议使用algo包,文档也更合理.apoc里的算法已经没有很好的维护了,因为都迁移到了algo 项目-github.com/neo4j-contrib/neo4j-graph-algorithms 文档-https://neo4j-contrib.github.io/neo4j-graph-algorithms/
@liutianling apoc用cypher调用,然后用python api的run方法来执行拼接的cypher
可以看下这个例子
https://github.com/thenoNOno/sql2neo4j