RelationshipExpander (Neo4j Community 2.1.0-M01 API)
Date: 2014-02-20

org.neo4j.graphdb

## Interface RelationshipExpander

- All Known Subinterfaces:
    Expander

  Deprecated.
  in favor or `PathExpander`. A `RelationshipExpander` can still be wrapped via `StandardExpander.toPathExpander(RelationshipExpander)` to act like a `PathExpander`.

      public interface RelationshipExpander

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

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Iterable<Relationship>` | `expand(Node node)` Deprecated. Returns relationships for a `Node`.
    `RelationshipExpander` | `reversed()` Deprecated. Returns a new instance with the exact expansion logic, but reversed.

- - ### Method Detail

    - #### expand

          Iterable<Relationship> expand(Node node)

      Deprecated.
      Returns relationships for a `Node`.
      Parameters:
        `node` - the node to expand.
      Returns:
        the relationships to return for the `node`.

    - #### reversed

          RelationshipExpander reversed()

      Deprecated.
      Returns a new instance with the exact expansion logic, but reversed. For example if this expander is set to expand:
      - KNOWS : OUTGOING
      - LIVES : INCOMING
      Then the reversed expander will be set to expand:
      - KNOWS : INCOMING
      - LIVES : OUTGOING
      Returns:
        a reversed `RelationshipExpander`.

Copyright © 2002–2014 The Neo4j Graph Database Project. All rights reserved.