Re: [Neo4j] best way to get all directly related nodes?

2011-11-18 Thread Andres Taylor
On Fri, Nov 18, 2011 at 10:56 AM, D. Frej wrote: > Hi everybody, > > what is the most performant way to get all directly related nodes? I > know that there are following possibilites: > - node.getRelationships() > - node.traverse(StopEvaluator.DEPTH_ONE) > - Cypher > > In the first two cases I ge

[Neo4j] best way to get all directly related nodes?

2011-11-18 Thread D. Frej
Hi everybody, what is the most performant way to get all directly related nodes? I know that there are following possibilites: - node.getRelationships() - node.traverse(StopEvaluator.DEPTH_ONE) - Cypher In the first two cases I get the Relationship and still have to do relationship.getEndNode()