边的次数是否可以筛选出来

噢,我理解错你的意思了。
试试这个

MATCH (v)-[e:follow]->(n) where id(v) in ["player101"] 
WITH id(v) AS vid1, id(n) AS vid2 collect(e) AS edge1 where size(edge1)==1
RETURN edge1
2 个赞