Uses of Interface
org.neo4j.graphdb.Path
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 Path in org.neo4j.graphalgo
Modifier and TypeInterfaceDescriptioninterface
PathFinder<P extends Path>
Interface of algorithms that finds paths in between two nodes.Modifier and TypeMethodDescriptionstatic PathFinder<Path>
GraphAlgoFactory.allPaths
(EvaluationContext context, PathExpander expander, int maxDepth) Returns an algorithm which can find all available paths between two nodes.static PathFinder<Path>
GraphAlgoFactory.allSimplePaths
(EvaluationContext context, PathExpander expander, int maxDepth) Returns an algorithm which can find all simple paths between two nodes.static PathFinder<Path>
GraphAlgoFactory.pathsWithLength
(EvaluationContext context, PathExpander expander, int length) Returns an algorithm which can find simple all paths of a certain length between two nodes.static PathFinder<Path>
GraphAlgoFactory.shortestPath
(EvaluationContext context, PathExpander expander, int maxDepth) Returns an algorithm which can find all shortest paths (that is paths with as shortlength()
as possible) between two nodes.static PathFinder<Path>
GraphAlgoFactory.shortestPath
(EvaluationContext context, PathExpander expander, int maxDepth, int maxHitCount) Returns an algorithm which can find all shortest paths (that is paths with as shortlength()
as possible) between two nodes. -
Uses of Path in org.neo4j.graphdb
Modifier and TypeMethodDescriptionstatic <STATE> PathExpander<STATE>
PathExpanders.printingWrapper
(PathExpander<STATE> source, BiFunction<Path, BranchState, Boolean> pred) A wrapper that usesPaths.DefaultPathDescriptor
to print expanded paths that fulfillBiFunction
predicate.static <STATE> PathExpander<STATE>
PathExpanders.printingWrapper
(PathExpander<STATE> source, BiFunction<Path, BranchState, Boolean> pred, Paths.PathDescriptor descriptor) A wrapper that usesPaths.DefaultPathDescriptor
to print expanded paths that fulfillBiFunction
predicate using givenPaths.PathDescriptor
.static <STATE> PathExpander<STATE>
PathExpanders.printingWrapper
(PathExpander<STATE> source, BiFunction<Path, BranchState, Boolean> pred, Paths.PathDescriptor descriptor, PrintStream out) A wrapper that usesPaths.DefaultPathDescriptor
to print expanded paths that fulfillBiFunction
predicate using givenPaths.PathDescriptor
. -
Uses of Path in org.neo4j.graphdb.traversal
Modifier and TypeClassDescriptionstatic class
Paths.DefaultPathDescriptor<T extends Path>
The defaultPaths.PathDescriptor
used in common toString() representations in classes implementingPath
.static interface
Paths.PathDescriptor<T extends Path>
Provides hooks to help build a string representation of aPath
.Modifier and TypeInterfaceDescriptioninterface
Represents aposition
and aPathExpander
with a traversal context, for example parent and an iterator of relationships to go next.Modifier and TypeMethodDescriptionstatic <T extends Path>
Paths.PathDescriptor<T>Paths.descriptorForIdAndProperties
(boolean nodeId, boolean relId, String... propertyKeys) Create a newPaths.PathDescriptor
that prints values of listed property keys and id of nodes and relationships if configured so.Paths.pathToString
(T path, Paths.PathDescriptor<T> builder) Method for building a string representation of aPath
, using the givenbuilder
.Modifier and TypeMethodDescriptionBranchCollisionDetector.evaluate
(TraversalBranch branch, Direction direction) Evaluate the givenbranch
coming from either the start side or the end side.Traverser.iterator()
Represents the traversal in the form ofPath
s.Modifier and TypeMethodDescriptionstatic String
Paths.defaultPathToString
(Path path) TODO: This method re-binds nodes and relationships.static String
Paths.defaultPathToStringWithNotInTransactionFallback
(Path path) Evaluator.AsPathEvaluator.evaluate
(Path path, BranchState<STATE> state) Evaluates aPath
and returns anEvaluation
containing information about whether or not to include it in the traversal result, i.e return it from theTraverser
.PathEvaluator.evaluate
(Path path, BranchState<STATE> state) Evaluates aPath
and returns anEvaluation
containing information about whether or not to include it in the traversal result, i.e return it from theTraverser
.InitialBranchState.initialState
(Path path) Returns an initial state for aPath
.InitialBranchState.State.initialState
(Path path) Paths.DefaultPathDescriptor.nodeRepresentation
(Path path, Node node) Paths.DefaultPathDescriptor.relationshipRepresentation
(Path path, Node from, Relationship relationship) static String
Paths.simplePathToString
(Path path) Returns a quite simple string representation of aPath
.static String
Paths.simplePathToString
(Path path, String nodePropertyKey) Returns a quite simple string representation of aPath
.