org.neo4j.api.core
Interface Traverser

All Superinterfaces:
Iterable<Node>

public interface Traverser
extends Iterable<Node>

See Node.traverse(...).


Nested Class Summary
static class Traverser.Order
          Enum defining the two types of traversals.
 
Method Summary
 TraversalPosition currentPosition()
          Returns the current traversal postion.
 Collection<Node> getAllNodes()
          Returns a collection of all nodes returned by this traverser.
 Iterator<Node> iterator()
          Returns an iterator for this traverser.
 

Method Detail

currentPosition

TraversalPosition currentPosition()
Returns the current traversal postion.

Returns:
The current traversal position

getAllNodes

Collection<Node> getAllNodes()
Returns a collection of all nodes returned by this traverser.

Returns:
A collection of all node returned by this traverser

iterator

Iterator<Node> iterator()
Returns an iterator for this traverser.

Specified by:
iterator in interface Iterable<Node>
Returns:
An iterator for this traverser


Copyright © 2007 Neo4j. All Rights Reserved.