Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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 `RelationshipType`s, 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 `RelationshipType`s, but with all directions reversed (see `Direction.reverse()`).

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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2010 Neo4j. All Rights Reserved.