From: hyperutila <derrickbrin...@gmail.com>
Date: Mon, 30 Apr 2012 13:03:42 -0700 (PDT)
Local: Mon, Apr 30 2012 4:03 pm
Subject: Re: Unique middle-man in traversal
Ah, perfect! I think this is exactly what I was looking for. I just
didn't know how to go about implementing your own Uniqueness class. At first glance, it looked like they only have the built-in Uniqueness filters that you can create from the Uniqueness class. But I got it all set up with a UniquenessFactory that generates a UniquenessFilter and does what I want. Thank you so much! On Apr 29, 6:32 am, Mattias Persson <matt...@neotechnology.com> wrote:
> It sounds like you'd need to implement your own UniquenessFilter, one which
> checks uniqueness on the last pair of nodes in a Path, right? > Look at Uniqueness class for an example of a factory for common
> class NodePairUniqueness implements UniquenessFilter {
> public bollean checkFirst( TraversalBranch branch ) {
> public boolean check( TraversalBranch branch ) {
> }
> I also realize that it would be grand with a Path#reversedNodes() or
> Den lördagen den 28:e april 2012 skrev hyperutila<derrickbrin...@gmail.com>:
> > I have a graph where there are sometimes multiple relationships
> > In other words, I don't want to implement uniqueness of relationships,
> > Thanks! You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||