|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PathExpander<STATE>
An expander of relationships. It's a flexible way of getting relationships
from a Path
. Given a path, which relationships should be expanded
from it to traverse further.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |