未知函数'algo.getNodeById' [英] Unknown function 'algo.getNodeById'

查看:234
本文介绍了未知函数'algo.getNodeById'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Neo4j中运行以下命令,但是它给出了错误Unknown function'algo.getNodeById'.我正在使用Neo4j桌面(3.4.0),并且正在Neo4j浏览器中运行以下命令:

I tried to run the following command in Neo4j however it gives the error Unknown function 'algo.getNodeById'. I am using Neo4j desktop (3.4.0) and I am running this command in Neo4j browser:

CALL algo.unionFind.stream('', ':REL', {})
YIELD nodeId,setId

RETURN algo.getNodeById(nodeId).id AS user, setId

我想在图形中找到连接的组件(最大连接的前10个组件).任何其他可以帮助我可视化图形中连接组件的解决方案也都可以

I want to find connected components (top10 maximum connected) in my graph. Any other solution which can help me visualize the connected component in the graph will also work

推荐答案

某些较旧版本的算法未包含algo.getNodeById().如果可以尝试使用最新的图形算法,请不确定如何将其与Neo4j Desktop配合使用,但是我将尝试重新安装它们.您也可以升级桌面版本.

Some of the older versions of algorithms don't have algo.getNodeById() included. If you can try to use the latest graph algorithms, not sure how this works with Neo4j Desktop, but I would try to reinstall them. You could also upgrade your Desktop version.

如果所有这些都不可用,请记住algo.getNodeById()只是通过其内部ID匹配该节点,您可以通过使用以下命令获得相同的功能.

If none of this is available remember that algo.getNodeById() just matches the node by its internal ID and you can get the same functionality by using the following.

CALL algo.unionFind.stream('', ':REL', {})
YIELD nodeId,setId

MATCH (node) where id(node) = nodeId
RETURN node.id AS user, setId

这篇关于未知函数'algo.getNodeById'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆