- 如题
请问边的删除有例子吗?
(root@nebula) [nba]> create edge E()
Execution succeeded (time spent 1459/1696 us)
(root@nebula) [nba]> insert edge E() values "1"->"2":()
Execution succeeded (time spent 1499/1706 us)
(root@nebula) [nba]> create edge index e_index on E()
Execution succeeded (time spent 1351/1592 us)
(root@nebula) [nba]> rebuild edge index e_index
+------------+
| New Job Id |
+------------+
| 17 |
+------------+
Got 1 rows (time spent 1498/1769 us)
(root@nebula) [nba]> lookup on E yield E._src as src,E._dst as dst
+-----+-----+
| src | dst |
+-----+-----+
| "1" | "2" |
+-----+-----+
Got 1 rows (time spent 5087/5368 us)
(root@nebula) [nba]> lookup on E yield E._src as src,E._dst as dst|delete edge E $-.src->$-.dst
Execution succeeded (time spent 6338/6590 us)
删除edge的时候最好还是需要指定下rank
lookup on E yield E._src as src,E._dst as dst, rank(edge) as rank | delete edge E $-.src->$-.dst@$-.rank