Package org.neo4j.graphalgo
Interface PathFinder<P extends Path>
- Type Parameters:
P
- the path type that the algorithm produces
public interface PathFinder<P extends Path>
Interface of algorithms that finds paths in between two nodes.
-
Method Summary
Modifier and TypeMethodDescriptionfindAllPaths
(Node start, Node end) Tries to find all paths betweenstart
andend
nodes.findSinglePath
(Node start, Node end) Tries to find a single path betweenstart
andend
nodes.metadata()
-
Method Details
-
findSinglePath
Tries to find a single path betweenstart
andend
nodes. If a path is found aPath
is returned with that path information, elsenull
is returned. If more than one path is found, the implementation can decide itself upon which of those to return. -
findAllPaths
Tries to find all paths betweenstart
andend
nodes. A collection ofPath
s is returned with all the found paths. If no paths are found an empty collection is returned. -
metadata
TraversalMetadata metadata()
-