| Package | Description |
|---|---|
| org.neo4j.graphdb.traversal |
Traversal framework.
|
| org.neo4j.kernel |
Implementation for embedding a Neo4j graph database in an application.
|
| Modifier and Type | Method and Description |
|---|---|
TraversalBranch |
TraversalBranch.next(PathExpander expander,
TraversalContext metadata)
Returns the next expansion source from the expanded relationships
from the current node.
|
TraversalBranch |
BranchSelector.next(TraversalContext metadata)
Decides the next position ("where to go from here") from the current
position, based on the
rules. |
TraversalBranch |
TraversalBranch.parent()
The parent expansion source which created this
TraversalBranch. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
UniquenessFilter.check(TraversalBranch branch)
Checks whether or not
branch is unique, and hence can be
visited in this traversal. |
boolean |
UniquenessFilter.checkFirst(TraversalBranch branch)
The check whether or not to expand the first branch is a separate
method because it may contain checks which would be unnecessary for
all other checks.
|
BranchSelector |
BranchOrderingPolicy.create(TraversalBranch startBranch,
PathExpander expander)
Instantiates a
BranchSelector with startBranch as the
first branch to base a decision on "where to go next". |
Evaluation |
TraversalContext.evaluate(TraversalBranch branch,
BranchState state)
Evaluates a
TraversalBranch whether or not to include it in the
result and whether or not to continue further down this branch or not. |
Iterable<Path> |
BranchCollisionDetector.evaluate(TraversalBranch branch,
Direction direction)
Evaluate the given
branch coming from either the start side or the
end side. |
boolean |
TraversalContext.isUnique(TraversalBranch branch)
Used for all except branches to check adherence to the traversal
uniqueness.
|
boolean |
TraversalContext.isUniqueFirst(TraversalBranch branch)
Used for start branches to check adherence to the traversal uniqueness.
|
| Modifier and Type | Method and Description |
|---|---|
static TraversalBranch |
Traversal.combineSourcePaths(TraversalBranch source,
TraversalBranch target)
Combines two
TraversalBranchs with a common
head node in order to obtain an
TraversalBranch representing a path from the start node of the
source TraversalBranch to the start node of the
target TraversalBranch. |
TraversalBranch |
AlternatingSelectorOrderer.next(TraversalContext metadata) |
TraversalBranch |
PreorderBreadthFirstSelector.next(TraversalContext metadata) |
TraversalBranch |
LevelSelectorOrderer.next(TraversalContext metadata) |
| Modifier and Type | Method and Description |
|---|---|
static TraversalBranch |
Traversal.combineSourcePaths(TraversalBranch source,
TraversalBranch target)
Combines two
TraversalBranchs with a common
head node in order to obtain an
TraversalBranch representing a path from the start node of the
source TraversalBranch to the start node of the
target TraversalBranch. |
Collection<Path> |
StandardBranchCollisionDetector.evaluate(TraversalBranch branch,
Direction direction) |
| Constructor and Description |
|---|
BidirectionalTraversalBranchPath(TraversalBranch start,
TraversalBranch end) |
PreorderBreadthFirstSelector(TraversalBranch startSource,
PathExpander expander) |
Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.