DELETE EDGE

DELETE EDGE语句可以删除边。一次可以删除一条或多条边。您可以结合管道符一起使用,详情请参见管道符

如果需要删除一个点的所有出边,请删除这个点。详情请参见DELETE VERTEX

说明:目前还不能保证操作的原子性,如果发生故障请重试。

语法

  1. DELETE EDGE <edge_type> <src_vid> -> <dst_vid>[@<rank>] [, <edge_type> <src_vid> -> <dst_vid>[@<rank>] ...]

示例

  1. nebula> DELETE EDGE serve "player100" -> "team200"@0;
  1. # 结合管道符,删除符合条件的边。
  2. nebula> GO FROM "player100" OVER follow \
  3. WHERE follow._dst == "team200" \
  4. YIELD follow._src AS src, follow._dst AS dst, follow._rank AS rank \
  5. | DELETE EDGE follow $-.src->$-.dst @ $-.rank;