我想基于节点ID获取所有连接的节点。
例如:在下图中,如果我发送id: 0,则需要与此有关的所有节点和边。即0,1 and 2。
id: 0
0,1 and 2
我正在使用Match (n)-[r]-() return n,r从数据库中获取所有节点。
Match (n)-[r]-() return n,r
如何指定节点的ID以获取所有相关的节点信息
这里id是我在单击节点时从vis.js获得的变量。]>
vis.js
Match (n)-[r]-(m) where ID(n) IN [' + id + '] return n,r,m