match MINUS | DELETE 使用

试试这个:

((lookup on table yield VertexID as id) 
MINUS 
(lookup on table yield VertexID as id | go from $-.id over * BIDIRECT yield $-.id as id)) 
| delete $-.id