public interface Traverser extends ResourceIterable<Path>
Path objects which all other representations can be
derived from, i.e Node or Relationship. Each step
can also be represented in one of those representations directly.| Modifier and Type | Method and Description |
|---|---|
ResourceIterator<Path> |
iterator()
Represents the traversal in the form of
Paths. |
TraversalMetadata |
metadata() |
ResourceIterable<Node> |
nodes()
Represents the traversal in the form of
Nodes. |
ResourceIterable<Relationship> |
relationships()
Represents the traversal in the form of
Relationships. |
ResourceIterable<Node> nodes()
Nodes. This is a
convenient way to iterate over Paths and get the
Path.endNode() for each position.Node objects.ResourceIterable<Relationship> relationships()
Relationships. This is a
convenient way to iterate over Paths and get the
Path.lastRelationship() for each position.Relationship objects.ResourceIterator<Path> iterator()
TraversalMetadata metadata()
TraversalMetadata from the last traversal performed,
or being performed by this traverser.Copyright © 2002–2015 The Neo4j Graph Database Project. All rights reserved.