Neo4j Community

org.neo4j.graphdb
Interface RelationshipExpander

All Known Subinterfaces:
Expander
All Known Implementing Classes:
OrderedByTypeExpander, StandardExpander

public interface RelationshipExpander

An expander of relationships. It's a flexible way of getting relationships from a node.


Method Summary
 Iterable<Relationship> expand(Node node)
          Returns relationships for a node in whatever way the implementation likes.
 RelationshipExpander reversed()
          Returns a new instance with the exact same RelationshipTypes, but with all directions reversed (see Direction.reverse()).
 

Method Detail

expand

Iterable<Relationship> expand(Node node)
Returns relationships for a node in whatever way the implementation likes.

Parameters:
node - the node to expand.
Returns:
the relationships to return for the node.

reversed

RelationshipExpander reversed()
Returns a new instance with the exact same RelationshipTypes, but with all directions reversed (see Direction.reverse()).

Returns:
a RelationshipExpander with the same types, but with reversed directions.

Neo4j Community

Copyright © 2011 The Neo4j Graph Database Project. All Rights Reserved.