public interface PathExpander<STATE>
Path
. Given a path, which relationships should be expanded
from it to traverse further.Modifier and Type | Method and Description |
---|---|
Iterable<Relationship> |
expand(Path path,
BranchState<STATE> state)
Returns relationships for a
Path , most commonly from the
Path.endNode() . |
PathExpander<STATE> |
reverse()
Returns a new instance with the exact expansion logic, but reversed.
|
Iterable<Relationship> expand(Path path, BranchState<STATE> state)
Path
, most commonly from the
Path.endNode()
.path
- the path to expand (most commonly the end node).state
- the state of this branch in the current traversal.
BranchState.getState()
returns the state and
BranchState.setState(Object)
optionally sets the state for
the children of this branch. If state isn't altered the children
of this path will see the state of the parent.path
.PathExpander<STATE> reverse()
PathExpander
.Copyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.