Re: [Neo4j] Searching within relationships

2010-07-17 Thread Peter Soung
Here's some additional context. I'm using Neo4j to store connections between different contacts in different network groups. As a simple example, User A may be connected to User B in Network A and Network B, but not Network C. This would be represented by 2 nodes (one for each user) and 2

Re: [Neo4j] Searching within relationships

2010-07-17 Thread Marko Rodriguez
Hi, Here's some additional context. I'm using Neo4j to store connections between different contacts in different network groups. As a simple example, User A may be connected to User B in Network A and Network B, but not Network C. This would be represented by 2 nodes (one for each user)

Re: [Neo4j] Searching within relationships

2010-07-17 Thread David Montag
Hi Peter, Those use cases do sound feasible. The first one, finding all of 123's friends named Bob, you can do in different ways. You could iterate the relationships on 123 finding the friends and do the filtering/matching manually, or you could do a depth 1 traversal with some constraints, or,

[Neo4j] Searching within relationships

2010-07-16 Thread Peter Soung
Hello, Is there a high-performance way to search/lookup users within the relationships of a given user? This is assuming that the relevant properties have been indexed. Thanks, Peter ___ Neo4j mailing list User@lists.neo4j.org

Re: [Neo4j] Searching within relationships

2010-07-16 Thread David Montag
Hi Peter, Just to understand the issue at hand, what does your graph look like? What problem do you want to solve? Do you have User nodes connected with some type of relationship, and want to find all users connected to a given user, who e.g. have an age property with a value greater than 30?