Uses of Enum Class
org.neo4j.graphdb.Direction
Package
Description
Scalable graph algorithms like shortest path and others for Neo4j which
can be easily accessed via
GraphAlgoFactory
.The core graph database API.
Traversal framework.
-
Uses of Direction in org.neo4j.graphalgo
Modifier and TypeMethodDescriptionCostEvaluator.getCost
(Relationship relationship, Direction direction) This is the general method for looking up costs for relationships. -
Uses of Direction in org.neo4j.graphdb
Modifier and TypeMethodDescriptionDirection.reverse()
static Direction
Returns the enum constant of this class with the specified name.static Direction[]
Direction.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionPathExpanderBuilder.add
(RelationshipType type, Direction direction) Add a pair oftype
anddirection
to the PathExpander configuration.static PathExpanderBuilder
APathExpanderBuilder
seeded with all possible types but restricted todirection
.static <STATE> PathExpander<STATE>
PathExpanders.forDirection
(Direction direction) A very permissivePathExpander
that follows any type indirection
.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
Returns the number of relationships of a givendirection
connected to this node.int
Node.getDegree
(RelationshipType type, Direction direction) Returns the number of relationships of a giventype
anddirection
connected to this node.Node.getRelationships
(Direction dir) Node.getRelationships
(Direction direction, RelationshipType... types) Returns all the relationships of any of the types intypes
that are attached to this node and have the givendirection
.Node.getSingleRelationship
(RelationshipType type, Direction dir) Returns the only relationship of a given type and direction that is attached to this node, ornull
.boolean
Node.hasRelationship
(Direction dir) Returnstrue
if there are any relationships in the given direction attached to this node,false
otherwise.boolean
Node.hasRelationship
(Direction direction, RelationshipType... types) Returnstrue
if there are any relationships of any of the types intypes
attached to this node (for the givendirection
),false
otherwise. -
Uses of Direction in org.neo4j.graphdb.traversal
Modifier and TypeMethodDescriptionBranchCollisionDetector.evaluate
(TraversalBranch branch, Direction direction) Evaluate the givenbranch
coming from either the start side or the end side.TraversalDescription.relationships
(RelationshipType type, Direction direction) Addstype
to the list of relationship types to traverse in the givendirection
.