取二度关注过滤掉一度关注以及重复的人:
(user@nebula) [friend]> (go 2 STEPS from 1001 OVER follow where follow._dst!=1001 YIELD distinct follow._dst MINUS go FROM 1001 OVER follow)
===============
| follow._dst |
===============
| 1009 |
---------------
| 1013 |
---------------
| 1006 |
---------------
Got 3 rows (Time spent: 4.455/5.961 ms)
查二度关注显示一度关注来源
(user@nebula) [friend]> (go 2 STEPS from 1001 OVER follow where follow._dst!=1001 YIELD follow._dst ,follow._src)
=============================
| follow._dst | follow._src |
=============================
| 1009 | 1003 |
-----------------------------
| 1013 | 1003 |
-----------------------------
| 1005 | 1004 |
-----------------------------
| 1006 | 1004 |
-----------------------------
| 1009 | 1004 |
-----------------------------
Got 5 rows (Time spent: 3.745/6.628 ms)
查二度关注显示一度关注来源 ,加上distinct follow._dst不起作用
(user@nebula) [friend]> (go 2 STEPS from 1001 OVER follow where follow._dst!=1001 YIELD distinct follow._dst ,follow._src)
=============================
| follow._dst | follow._src |
=============================
| 1005 | 1004 |
-----------------------------
| 1006 | 1004 |
-----------------------------
| 1009 | 1004 |
-----------------------------
| 1009 | 1003 |
-----------------------------
| 1013 | 1003 |
-----------------------------
Got 5 rows (Time spent: 2.564/4.665 ms)