| Package | Description |
|---|---|
| org.neo4j.graphdb |
The core graph database API.
|
| org.neo4j.graphdb.traversal |
Traversal framework.
|
| Modifier and Type | Method and Description |
|---|---|
Direction |
Direction.reverse()
|
static Direction |
Direction.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Direction[] |
Direction.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
PathExpanderBuilder |
PathExpanderBuilder.add(RelationshipType type,
Direction direction)
Add a pair of
type and direction to the PathExpander configuration. |
Expander |
Expander.add(RelationshipType type,
Direction direction)
Deprecated.
|
static PathExpanderBuilder |
PathExpanderBuilder.allTypes(Direction direction)
A
PathExpanderBuilder seeded with all possible types but restricted to direction. |
static <STATE> PathExpander<STATE> |
PathExpanders.forDirection(Direction direction)
A very permissive
PathExpander that follows any type in direction. |
static <STATE> PathExpander<STATE> |
PathExpanders.forTypeAndDirection(RelationshipType type,
Direction direction)
|
static <STATE> PathExpander<STATE> |
PathExpanders.forTypesAndDirections(RelationshipType type1,
Direction direction1,
RelationshipType type2,
Direction direction2,
Object... more)
|
int |
Node.getDegree(Direction direction)
Returns the number of relationships of a given
direction connected to this node. |
int |
Node.getDegree(RelationshipType type,
Direction direction)
Returns the number of relationships of a given
type and direction
connected to this node. |
Iterable<Relationship> |
Node.getRelationships(Direction dir)
|
Iterable<Relationship> |
Node.getRelationships(Direction direction,
RelationshipType... types)
Returns all the relationships of any of the types in
types
that are attached to this node and have the given direction. |
Iterable<Relationship> |
Node.getRelationships(RelationshipType type,
Direction dir)
Returns all relationships with the given type and direction that are
attached to this node.
|
Relationship |
Node.getSingleRelationship(RelationshipType type,
Direction dir)
Returns the only relationship of a given type and direction that is
attached to this node, or
null. |
boolean |
Node.hasRelationship(Direction dir)
Returns
true if there are any relationships in the given
direction attached to this node, false otherwise. |
boolean |
Node.hasRelationship(Direction direction,
RelationshipType... types)
Returns
true if there are any relationships of any of the
types in types attached to this node (for the given
direction), false otherwise. |
boolean |
Node.hasRelationship(RelationshipType type,
Direction dir)
Returns
true if there are any relationships of the given
relationship type and direction attached to this node, false
otherwise. |
Traverser |
Node.traverse(Traverser.Order traversalOrder,
StopEvaluator stopEvaluator,
ReturnableEvaluator returnableEvaluator,
RelationshipType relationshipType,
Direction direction)
Deprecated.
because of an unnatural and too tight coupling with
Node. Also because of the introduction of a new
traversal framework. The new way of doing traversals is by
creating a new TraversalDescription from
Traversal.traversal(), add rules and behaviors to it
and then calling
TraversalDescription.traverse(Node...) |
Traverser |
Node.traverse(Traverser.Order traversalOrder,
StopEvaluator stopEvaluator,
ReturnableEvaluator returnableEvaluator,
RelationshipType firstRelationshipType,
Direction firstDirection,
RelationshipType secondRelationshipType,
Direction secondDirection)
Deprecated.
because of an unnatural and too tight coupling with
Node. Also because of the introduction of a new traversal
framework. The new way of doing traversals is by creating a
new TraversalDescription from
Traversal.traversal(), add rules and
behaviors to it and then calling
TraversalDescription.traverse(Node...) |
| Modifier and Type | Method and Description |
|---|---|
Direction |
SideSelector.currentSide() |
| Modifier and Type | Method and Description |
|---|---|
Iterable<Path> |
BranchCollisionDetector.evaluate(TraversalBranch branch,
Direction direction)
Evaluate the given
branch coming from either the start side or the
end side. |
TraversalDescription |
TraversalDescription.relationships(RelationshipType type,
Direction direction)
Adds
type to the list of relationship types to traverse in
the given direction. |
Copyright © 2002–2015 The Neo4j Graph Database Project. All rights reserved.