Match查询不支持“不同id,相同属性name的所有节点获取”

nebula 好像不支持apoc.refactor.mergeNodes(),如果我想要实现该效果,有没有什么其他方法呢?
e33e44438218c7390d53c760308f17b
例如:上图中,各个节点有唯一的id,但是name 可能相同,如"e"
目的:我希望通过相同name,找到其所有”兄弟节点“,并返回。如[f, g, h]
请问使用match语句该怎样做呢?多谢多谢

lookup on <tag> where <tag>.name = 'e' | go from $-.VertexID over <edge> reversely YIELD <edge>._dst AS dst | go from $-.dst over <edge> where $$.<tag>.name != 'e'

基本思路就是先找到‘e’,再找到’e’的爹,再找他爹的所有儿子并把’e’去掉

1 个赞
MATCH (e)-[:parrent]->(root)<-[:parrent]-(brother) 
WHERE e.name=="e" 
RETURN brother
1 个赞

此话题已在最后回复的 30 天后被自动关闭。不再允许新回复。