感谢Aiee,
(GO 2 steps FROM "Tim Duncan" OVER teammate YIELD teammate._dst AS id | YIELD $-.id AS dsts
MINUS
GO FROM "Tim Duncan" OVER teammate REVERSELY YIELD teammate._dst as id | YIELD $-.id AS dsts)
| YIELD $-.dsts as name, COUNT(*) as appear_count
两跳后排除反向一跳,这样可以满足我的需求,我还要排除一下这个节点自己应该怎么写?
比如Tim和Tony是双向好友,Tim两跳后会回到Tim.
再次感谢Aiee大哥的解惑