TraversalLogicExt
Attributes
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
Members list
Type members
Types
Value members
Concrete methods
only preserves elements for which all of the given traversals have at least one result Works for arbitrary amount of 'AND' traversals.
only preserves elements for which all of the given traversals have at least one result Works for arbitrary amount of 'AND' traversals.
Attributes
- Example:
.and(_.label("someLabel"), _.has("someProperty"))
Branch step: based on the current element, match on something given a traversal, and provide resulting traversals based on the matched element. Allows to implement conditional semantics: if, if/else, if/elseif, if/elseif/else, ...
Branch step: based on the current element, match on something given a traversal, and provide resulting traversals based on the matched element. Allows to implement conditional semantics: if, if/else, if/elseif, if/elseif/else, ...
Attributes
- BranchOn
required to be >: Null because the implementation is using
null
as the default value. I didn't find a better way to implement all semantics with the niceties of PartialFunction, and also yolo...- NewEnd
The element type of the resulting traversal
- on
Traversal to get to what you want to match on
- options
PartialFunction from the matched element to the resulting traversal
- See also:
LogicalStepsTests
- Example:
.choose(_.property(Name)) { case "L1" => _.out case "R1" => _.repeat(_.out)(_.maxDepth(3)) case _ => _.in }
only preserves elements if the provided traversal does not have any results - alias for whereNot
only preserves elements if the provided traversal does not have any results - alias for whereNot
Attributes
only preserves elements for which at least one of the given traversals has at least one result Works for arbitrary amount of 'OR' traversals.
only preserves elements for which at least one of the given traversals has at least one result Works for arbitrary amount of 'OR' traversals.
Attributes
- Example:
.or(_.label("someLabel"), _.has("someProperty"))
perform side effect without changing the contents of the traversal
perform side effect without changing the contents of the traversal
Attributes
perform side effect without changing the contents of the traversal will only apply the partialFunction if it is
defined for the given input - analogous to collect
perform side effect without changing the contents of the traversal will only apply the partialFunction if it is
defined for the given input - analogous to collect
Attributes
union step from the current point
union step from the current point
Attributes
- traversals
to be executed from here, results are being aggregated/summed/unioned
- Example:
.union(_.out, _.in)
only preserves elements if the provided traversal has at least one result
only preserves elements if the provided traversal has at least one result
Attributes
only preserves elements if the provided traversal does not have any results
only preserves elements if the provided traversal does not have any results