[Neo] getRelationships(RelationshipType... types)
anders at neotechnology.com
Wed Feb 24 10:04:47 CET 2010
This question was answered in this thread on the neo4jrb mailing list:
Sumanth Thikka wrote:
> I am newbie to neo4j and I am enjoying it.
> I have started to create nodes, relationships and assigning properties to
> the nodes etc.
> I've got a problem in accessing relationships of a node.
> If 'knows = DynamicRelationshipType.withName("KNOWS")' is a relation
> When a relationship 'knows' is formed from node1 to node2, I should be able
> to access relationship of node1 by one of node1.getRelationships()
> or node1.getRelationships(knows, direction)
> or node1.getRelationships(direction) or node1.getRelationships(knows)
> There is no problem with the first three, but the last method throws an
> Error is:
> NameError: no getRelationships with arguments matching [class
> org.neo4j.graphdb.DynamicRelationshipType] on object
> From the documentation of node1.getRelationships(RelationshipType... types),
> I sense that 'types' is a little different from 'knows' .
> Please help me understand how types needs to be passed to the
> method node1.getRelationships(RelationshipType... types).
> Neo mailing list
> User at lists.neo4j.org
More information about the User