[Neo4j] retrieve all relationships of a certain type (java)

2011-07-20 Thread cyuczi eekc
How would I go about retrieving all nodes for a certain relationship Type (ie. assuming I don't know any of them nodes) ? (in java code, the other variants rest/cypher I will probably not need to use) ie. rel.getAllNodes(Direction.INCOMING) or rel.getAllNodes(Direction.OUTGOING) or Direction.BOTH

Re: [Neo4j] retrieve all relationships of a certain type (java)

2011-07-20 Thread Marko Rodriguez
Hey, How would I go about retrieving all nodes for a certain relationship Type (ie. assuming I don't know any of them nodes) ? Use an index. I don't know in native Neo4j off the top of my head, but the analogous to this in Blueprints: g.getIndex(edges, Edge.class).get(label,myType)