[Neo] Basic search in Neoclipse

Anders Nawroth anders.nawroth at gmail.com
Mon Sep 1 13:55:43 CEST 2008


Peter Haensgen wrote:
> The problem with the traverser is that its API is not sufficient. It
> cannot be used to "follow all outgoing relationships from this node for
> any relationshiptype", because you always have to specify a pair of
> {direction, relationshiptype}, which you don't have in this case. I
> think this should be changed!

Ah, I forgot about this for a moment. :-)

Anyhow, I implemented a traverser:


Bad things about this implementation:
* only works with EmbeddedNeo, not RemoteNeo (well, simply not the 
NeoService interface)
* some abuse of Java variable arguments (or?!)
* using a deprecated method in EmbeddedNeo (but hey, it shouldn't go away!)
Good things:
* clean
* fast
* uses less memory
* no need to find all matches and put them in a list

I left the old checkNode() method (not used any more) for now.



More information about the User mailing list