Hi! 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: <https://trac.neo4j.org/browser/components/neoclipse/trunk/org.neo4j.neoclipse/src/main/java/org/neo4j/neoclipse/search/NeoSearchQuery.java#L149> 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. WDYT? /anders _______________________________________________ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user