一度好友查询:
(user@nebula) [friend]> go from 1001 OVER friend bidirect
===============
| friend._dst |
===============
| 1002 |
---------------
| 1003 |
---------------
| 1004 |
---------------
Got 3 rows (Time spent: 2.704/4.444 ms)
二度好友查询
(user@nebula) [friend]> go 2 STEPS from 1001 OVER friend bidirect where friend._dst!=1001
===============
| friend._dst |
===============
| 1003 |
---------------
| 1011 |
---------------
| 1002 |
---------------
| 1009 |
---------------
| 1011 |
---------------
| 1005 |
---------------
| 1006 |
---------------
Got 7 rows (Time spent: 8.673/11.709 ms)
怎么把1度好友过滤掉呢,还是说双向好友这种需要插入正反2条边?