- .V(start).emit(v -> true).repeat(__.outE().or(
- __.has("isParent", true),
- __.has("hasDelTarget", true)).inV());
+ .V(start).emit(v -> true).repeat(
+ __.union(
+ __.outE().or(
+ __.has(EdgeProperties.out(EdgeProperty.IS_PARENT), true),
+ __.has(EdgeProperties.out(EdgeProperty.HAS_DEL_TARGET), true)
+ ).inV(),
+ __.inE().or(
+ __.has(EdgeProperties.in(EdgeProperty.IS_PARENT), true),
+ __.has(EdgeProperties.in(EdgeProperty.HAS_DEL_TARGET), true)
+ ).outV()
+ )
+ );