Why not have includes() return the same instance with internal state
changed, then the various call options are equivalent.

On Jun 23, 2010 6:41 PM, "Tobias Ivarsson" <
tobias.ivars...@neotechnology.com> wrote:

On Wed, Jun 23, 2010 at 6:10 PM, Craig Taverner <cr...@amanzi.com> wrote:
> (I also noticed that r...
I get that feeling as well. Another feeling I get with includes() is that it
might be possible to do the following:

Expansion<Relationship> expansion = startNode.expand( KNOWS );
expansion.includes( LIKES );
expansion.includes( LOVES );
for (Node node : expansion.nodes()) {

With includes() one gets the feeling that the above would expand LOVES,
LIKES and KNOWS relationships, but it will in fact only expand KNOWS
relationships. With and() I don't think that mistake would be as common.


Tobias Ivarsson <tobias.ivars...@neotechnology.com>
Hacker, Neo Technology
Neo4j mailing list

Reply via email to