CALL algo.louvain.stream 每次求出社区不一致,求原因
代码如下: ** 是因为迭代时节点顺序不同??**
cypher = “CALL algo.louvain.stream”
"('match data=(na:person{name:“xxx”})-[0…3]-(nb:person) RETURN id(na), id(nb) as id’, "
"‘match (u1:person)-[r]-(u2:person) RETURN id(u1) as source, id(u2) as target’, "
"{graph: ‘cypher’}) "
"YIELD nodeId, community "
"MATCH(n:person) WHERE id(n)=nodeId "
"RETURN community, "
"count() as communitySize, "
"collect(n.name) as members "
“order by communitySize desc limit 50”