Re: [Neo] Common algorithms (finding isolated nodes)

2010-03-17 Thread Craig Taverner
And in the java API you can also iterate over the GraphDatabaseService.getAllNodes result. Could be expensive though. On Wed, Mar 17, 2010 at 5:14 PM, Lorenzo Livi wrote: > Hi, > > foreach KEY in the lucene index > retrieve the node n > if(degree(n)==0) > found! > > should work ... > > Lorenz

Re: [Neo] Common algorithms (finding isolated nodes)

2010-03-17 Thread Lorenzo Livi
Hi, foreach KEY in the lucene index retrieve the node n if(degree(n)==0) found! should work ... Lorenzo On Wed, Mar 17, 2010 at 5:05 PM, Greg Stich wrote: > Hello, > > I'm interested in using neo4j for a content management project. I'd > like to track relationships between content assets

[Neo] Common algorithms (finding isolated nodes)

2010-03-17 Thread Greg Stich
Hello, I'm interested in using neo4j for a content management project. I'd like to track relationships between content assets (nodes) in order to search for depending elements. Furthermore, I'd like to get a set of isolated nodes (incoming = outgoing relations = 0) for which one can assume that th